Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slurm: reace condition when consulting job state
* Because job IDs are reused in the Slurm DB when we consult the state of a job very quickly we get the state of an old job with the same ID which tipically is `COMPLETED`, causing REANA to think it is done and then try to find the output files (which do not exist because the actual job didn't finished). Technically speaking `sacct` queries `slurmdbd` but the job we submitted is still in memory only (`slurmctld`) and not yet committed to DB (`slurmdb`), where the old job ID lays (with its old information). This commit fixes the problem by using `scontrol show job` because it uses `slurmctld` directly and has the latest data (closes #272).
- Loading branch information
Diego Rodriguez
committed
Oct 9, 2020
1 parent
a8d47d2
commit e973f32
Showing
1 changed file
with
13 additions
and
20 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