Hi,
I have a specific situation in my project that would require to have the ability to cancel the work of a worker-thread after a given time.
Depending on the user input, the processing takes very long. Given that the backend should give an answer in a specified amount of time, I will answer the client with an error (using eventBus replyHandler). Meanwhile, the worker thread will continue working on the complex input for a long time, consuming resources to produce an output that will not be used.
I tried using vertx-circuit-breaker (3.3.3 and 3.4.0) with a timeout. The timer is fired (early in a multi-threading setup), the operation is counted as failed, but the processing of the future is not canceled.
Is there any way to stop a worker-thread to do work that is no longer needed?
Thanks!