ystia / yorc

Ystia Orchestrator
https://ystia.github.io
Apache License 2.0
67 stars 23 forks source link

Slurm: Use sacct to retrieve job status when scontrol show job does not show the job anymore #758

Closed loicalbertin closed 3 years ago

loicalbertin commented 3 years ago

Pull Request description

Description of the change

If scontrol show job fails to retrieve the job for some reason then try to use sacct.

How to verify it

Set a monitoring job interval higher than 5min and try to run a run workflow

Description for the changelog

Applicable Issues

Fixes #757 Backported to release/4.1 branch in #766 Backported to release/4.0 branch in #767

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.7% 97.7% Coverage
0.0% 0.0% Duplication