forked from official-stockfish/fishtest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save a run with finished tasks with higher priority.
Sometimes the worker list on the main page shows a worker seemingly working on two different tasks - which is impossible. This illusion occurs when one of the tasks is a new one and the other task is a finished task by the same worker which has not been written to disk yet. So from the point of view of the db it is still unfinished. This PR mitigates this issue by buffering a run with finished tasks with priority 1 (note: a run with new tasks is buffered with priority 2, other runs are buffered with priority 0). Another reason for this PR is that we want to reduce the number of direct buffer calls. This PR moves some buffer calls deeper in the call chain.
- Loading branch information
1 parent
0087ae4
commit e810977
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters