differential icon indicating copy to clipboard operation
differential copied to clipboard

Handling client abort

Open nadeesha opened this issue 2 years ago • 1 comments

In certain circumstances, the polling agent might close the connection before getting the request, but after the atomic UPDATE has marked the job as running. In these cases, we should try to walk back the update by listening to the abort.

Some Fastify references:

  • https://github.com/fastify/fastify/pull/4518
  • https://github.com/fastify/help/issues/577

nadeesha avatar Jan 12 '24 06:01 nadeesha

Related: https://fastify.dev/docs/latest/Guides/Detecting-When-Clients-Abort/

nadeesha avatar Mar 05 '24 11:03 nadeesha