-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DJM invokes shutdown listeners only sequentially #71
Comments
ru.fix.distributed.job.manager.ScheduledJobExecution#shutdown |
I think we need to clarify that listener that added by JobContext#addShutdownListener should NOT to shutdown job in listener's Thread, but just send signal to job for closing. DJM waits job's termination by itself in ScheduledJobExecution#awaitTermination (during rebalance) and in Worker#awaitAndTerminate (during closing DJM) |
after discussion we decided to clarify our API and give to user possibility to define threadPoolSize of executor in which we will launch shutdown listeners |
Example:
It produce very long freeze because DJM shutdowns SomeJob executions sequentially and waits long timeout of closing someResource one time per work-item
The text was updated successfully, but these errors were encountered: