-
Notifications
You must be signed in to change notification settings - Fork 132
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
Use active_run_lock(run) to protect updates of aggregated data. #2020
Conversation
We changed the active_run_locks to be reentrant.
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
@ppigazzini Can you check in the server log if there are messages like this fishtest/server/fishtest/rundb.py Lines 1202 to 1209 in a51582a
I am trying to debug this https://tests.stockfishchess.org/actions?action=log_message&user=&text=cores |
Very rare, and not very recent:
But matching the two events you highlight |
Thanks. I will fix this. |
This could possibly happen if the worker sends an update_task, the rundb is updated, but the full transaction fails (e.g. nginx timeout), in which the worker sends the update_task again? |
extended to 180 days ago $ sudo journalctl -u fishtest@6543 --since "180 days ago" | grep "is not equal to 0"
May 05 07:19:11 tests.stockfishchess.org pserve[28672]: The run object 663723214b68b70d8580c189 does not validate: run['cores'] (value:7) is not equal to 0
May 18 09:28:04 tests.stockfishchess.org pserve[22090]: The run object 66458ee993ce6da3e93b5b90 does not validate: run['cores'] (value:7) is not equal to 0 |
No this happens because for performance reasons |
We changed the active_run_locks to be reentrant.