forked from os-autoinst/openQA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require GruTask in database before running a minion job
It can happen that a GruTasks entry is added in a transaction and the minion job already enqueued and started before the transaction is committed. In that case we shouldn't start the minion job (the transaction could have been rollbacked even). The task needs to be deleted by the minion job in order to go on with processing a job, and it can't delete it if it doesn't see the entry in the database. But requiring the entry before the start of the job is even more correct IMHO. Issue: https://progress.opensuse.org/issues/165866
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 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