differential
differential copied to clipboard
Handling client abort
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
Related: https://fastify.dev/docs/latest/Guides/Detecting-When-Clients-Abort/