--

There are multiple ways you will handle situation line that. Request failure during polling is a very common case (429 status code sent by backend during polling is a common case), in such cases the frontend needs to be robust.

Also there are many reasons why the frontend shouldn't be allowed to pass the ID for the job. That's bad.

--

--

Aashish Peepra

Software Engineer @Commenda | 100K+ people used my websites | Mentored 28K+ Developers globally | Google Solution challenge global finalist