-
Notifications
You must be signed in to change notification settings - Fork 130
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
Try to avoid workers with the same name. #1759
Conversation
Hmm CI fails with
I did not touch autopurge... |
I restarted a couple of times the CI, same error, the raw log doesn't show further information. |
From the error (missing key), it seems that the API request failed. fishtest/server/tests/test_api.py Lines 508 to 518 in 7363126
fishtest/server/fishtest/api.py Lines 426 to 430 in 940e460
fishtest/server/fishtest/rundb.py Lines 689 to 693 in 940e460
|
I see. With this PR a worker can no longer have two active tasks at the same time (roughly). I guess this condition will not be satisfied during some tests. I will look at it tonight. |
Fixed! |
I wonder what is your timezone right now.. |
I couldn't resist to have a quick look and it turned out to be easy to fix (just changing the order of some statements). |
Right now DEV is running with the time aware datetime PR, I will test this PR this evening after loading a clean DB backup. |
During request_task, we check if there are active tasks for workers with the same name, which have recently been updated (i.e. they are not dead). If so then we return an error. Should fix official-stockfish#1360 (comment) .
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.
Looks good on DEV, tested with a couple of workers started with python3 worker.py --uuid_prefix 123456
PROD updated, thank you @vdbergh :) |
During request_task, we check if there are active tasks for workers with the same name, which have recently been updated (i.e. they are not dead). If so then we return an error.
Should fix #1360 (comment) .