SvenMarcus / hpc-rocket

https://svenmarcus.github.io/hpc-rocket/
MIT License
26 stars 3 forks source link

Can log Job ID in file #49

Closed SvenMarcus closed 1 year ago

SvenMarcus commented 1 year ago

Introduces the --save-jobid flag for the launch command and the --read-jobid-from flag for status, watch and cancel.

Storing the job ID in a file is useful when a CI job times out, but the Slurm Job is still running. For example after_script in GitLab CI can be used to cancel the Slurm Job after the timeout by reading the job ID from the previously stored file.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

93.5% 93.5% Coverage
0.0% 0.0% Duplication