Closed kevinkreiser closed 7 years ago
@noblige the above is a sketch to allow for cancelling requests/jobs. let me know what you think
@kevinkreiser I think at a minimum client disconnect should trigger an abort - this will save resources and also provides client with straightforward way to cancel synchronous operations. As for implementation - broadcasting abort requests (with some sort of job identifier) and having workers to poll, sounds like a reasonable approach.
When workers are performing relatively long tasks and the client no longer needs the result of such a task (maybe signaled via client disconnect?) we should be able to tell a given worker to abort his work. There are a few questions here though.