Skip to content
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

Manage Workers Task: check active messages #365

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

annehaley
Copy link
Collaborator

Since the manage_workers task runs every 20 seconds, it may preemptively stop a GPU worker currently working on a DeepSSM task (which will take longer than 20 seconds). This is because the current implementation only checks the number of messages waiting on the queue. If the worker is currently processing the last requested task, the number of waiting messages will be 0, and with the current implementation, that would mean that the GPU workers should be stopped.

This PR adds a check for the number of messages currently active on a worker; workers will only be stopped if the number of active messages is 0.

@annehaley annehaley requested review from manthey and JakeWags April 10, 2024 14:10
@annehaley annehaley merged commit 94ed16e into master Apr 10, 2024
4 checks passed
@annehaley annehaley deleted the check-active-msgs branch April 10, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants