-
Notifications
You must be signed in to change notification settings - Fork 26
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
[DNM] Delegate agency scheduled task run to submit #2825
base: development
Are you sure you want to change the base?
Conversation
- Prevent queuing up on the agency scheduler/timer (since the timer is single-threaded) on threadPool agency - Prevent CompoundContextAgency from running scheduled tasks without calling execute()
Believe TaskQueue.remove now needs to be handled by the job itself when it completes. |
Yes it's unchanged the TaskQueue.remove ie, |
Will not submit return immediately? |
Yes, submit on threadPool returns immediately. |
So then, TaskQueue.remove will occur immediately, allowing concurrent same jobs. |
, key); | ||
} | ||
}; | ||
TASK_QUEUE.put(key, task); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this should be before the run(), no guarantee that calling thread continues before the timertask.
Issues
Changes
Script to reproduce