NAME
waitjobs - Wait for selected jobs to exit the queue
VERSION
version 0.4.11
SYNOPSIS
waitjobs [options]
DESCRIPTION
This script waits for selected jobs to exit the queue. It continuously checks the status of the jobs and waits until all the specified jobs are completed.
OPTIONS
- -u, --user <username>
-
Specify the username to wait for jobs from. By default, it uses the current user.
- -n, --name <pattern>
-
Specify the name pattern to filter the jobs. Only jobs with matching names will be considered. The default pattern is '.+' (matches any name).
- -r, --refresh <time>
-
Specify the refresh time in seconds for checking the job status. The script will wait for this duration before checking the job status again. The default refresh time is 20 seconds.
- --verbose
-
Display verbose output, including the number of jobs being waited for.
- --debug
-
Enable debug mode, printing the output of the squeue command.
- --help
-
Print the help message and exit.
EXAMPLES
- Example 1:
-
Wait for all your jobs with a specific name to exit the queue:
waitjobs -n myjob
- Example 2:
-
Wait for jobs from a specific user to exit the queue:
waitjobs -u username
- Example 3:
-
Wait for jobs with a specific name from a specific user:
waitjobs -u username -n myjob
- Example 4:
-
Wait for jobs with a specific status, refreshing every 10 seconds:
waitjobs -n myjob -r 10 -u username -s RUNNING
AUTHOR
Andrea Telatin <proch@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2023 by Andrea Telatin.
This is free software, licensed under:
The MIT (X11) License