-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bugfix/squeue last job workaround (#74) * When squeue -j is given only one job id, and that job id is invalid, the squeue exit status is 1. That causes a WorkflowMgr::SchedulerDown exception, preventing sacct from being run. Rocotorun will refuse to submit any more jobs at that point until the user manually intervenes. * When squeue -j is given only one job id, and that job id is invalid, the squeue exit status is 1. That causes a WorkflowMgr::SchedulerDown exception, preventing sacct from being run. Rocotorun will refuse to submit any more jobs at that point until the user manually intervenes. * Do not catch an exception that is never thrown. Remove some commented-out code. Co-authored-by: Christopher Harrop <[email protected]> Co-authored-by: samuel.trahan <[email protected]> * Add support for the <exclusive> and <shared> tags to slurm. The --exclusive option is used for <exclusive>, unless <shared> is also set. (#75) Co-authored-by: Sam Trahan <[email protected]> * Enable configurable timeouts for batch queue job retrieval commands. (#77) * Feature/faster rocotorun (#78) * Totally untested changes! Do not calculate list of cycles or tasks until they are required. Special case for checking workflow: the WorkflowSubsetOptions are queried for all_tasks and all_cycles before generating the list of tasks or cycles. * WorkflowSubsetOptions: accessors need to be public * Corrections to prior commit: 1. WFMStatOption make_selection needs to be selection() and public due to change to WorkflowSubsetOption 2. Missing a pair of @ in workflowengine.rb 3. Another missing @ in workflowsubsetoptions.rb * Add the cron script that generates the sacct cache. * Use cached output from sacct, if present, instead of running sacct. The file is $ROCOTO_SACCT_CACHE, or $HOME/sacct-cache/sacct.txt if that variable is unset. * Totally untested changes! Do not calculate list of cycles or tasks until they are required. Special case for checking workflow: the WorkflowSubsetOptions are queried for all_tasks and all_cycles before generating the list of tasks or cycles. * WorkflowSubsetOptions: accessors need to be public * Corrections to prior commit: 1. WFMStatOption make_selection needs to be selection() and public due to change to WorkflowSubsetOption 2. Missing a pair of @ in workflowengine.rb 3. Another missing @ in workflowsubsetoptions.rb * give a sensible message instead of raising an exception when rocotochecking a job that does not exist * set.delete, not set.remove * Fix bug triggered when no sacct cache exists. Remove unused variable from lsfbatchsystem. Co-authored-by: samuel.trahan <[email protected]> Co-authored-by: Christopher Harrop <[email protected]> * Fix typos in README.md (#79) * Feature/2.7 compatibility (#81) * Fix Ruby 2.7 compatibility issues. * Remove old version of sqlite3-ruby tarfile. * Replace queries to all Slurm clusters with queries to Slurm federation. (#82) Avoids issues for Slurm clusters that are not configured with clusters. Co-authored-by: Christopher Harrop <[email protected]> * Fix bug that caused duplicate job retrievals from the database. (#83) Co-authored-by: Christopher Harrop <[email protected]> * Increase DRb timeouts to improve recovery during heavy loads. (#84) May sometimes result in longer intervals between successful completion of rocotorun commands, but improves overall resiliency by allowing slow operations to complete instead of producing persistent timeouts and failure. Co-authored-by: Christopher Harrop <[email protected]> * Remove unnecessary check for Slurm job status information. (#85) Co-authored-by: Christopher Harrop <[email protected]> * Add missing config argument during initialization of moabtorque (#86) batch system. Co-authored-by: Christopher Harrop <[email protected]> * Write each workflow's Rocoto logs in its own directory instead of $HOME/.rocoto/log (#87) Co-authored-by: Christopher Harrop <[email protected]> * Update RELEASE_NOTES. * Update VERSION * Bug fixes: `WorkflowSelection.select_tasks` was ignoring `@all_tasks` information, and two related warning messages were confusing. (#88) Co-authored-by: Samuel Trahan <[email protected]> * Update RELEASE_NOTES. Co-authored-by: Samuel Trahan <[email protected]> Co-authored-by: samuel.trahan <[email protected]> Co-authored-by: Christopher Harrop <[email protected]> Co-authored-by: Christopher Harrop <[email protected]> Co-authored-by: Ben Johnson <[email protected]>
- Loading branch information
1 parent
356d2e1
commit 8a91063
Showing
33 changed files
with
320 additions
and
1,015 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.1 | ||
1.3.3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#! /bin/bash --login | ||
|
||
if [[ -t 1 ]] ; then | ||
set -x | ||
fi | ||
|
||
set -ue | ||
|
||
six_days_ago=$( date +%m%d%y -d "6 days ago" ) | ||
tgtfile="$HOME/sacct-cache/sacct.txt" | ||
workdir=$( dirname "$tgtfile" ) | ||
[[ -d "$workdir" ]] || mkdir "$workdir" || sleep 3 | ||
temp=$( mktemp --tmpdir="$workdir" ) | ||
|
||
set +ue | ||
|
||
( | ||
set -ue | ||
sacct -S "$six_days_ago" -L -o "jobid,user%30,jobname%30,partition%20,priority,submit,start,end,ncpus,exitcode,state%12" -P > "$temp" ; | ||
(( $( wc -l < "$temp" ) > 1 )) && /bin/mv -f "$temp" "$tgtfile" | ||
) | ||
|
||
if [[ -e "$temp" ]] ; then | ||
rm -f "$temp" | ||
fi |
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
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
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
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
Oops, something went wrong.