condor_wait(1) | General Commands Manual | condor_wait(1) |
condor_wait Wait - for jobs to finish
condor_wait [-help -version]
condor_wait[-debug] [-status] [-echo] [-wait seconds] [-num number-of-jobs] log-file[job ID]
condor_waitwatches a job event log file (created with the logcommand within a submit description file) and returns when one or more jobs from the log have completed or aborted.
Because condor_waitexpects to find at least one job submitted event in the log file, at least one job must have been successfully submitted with condor_submitbefore condor_waitis executed.
condor_waitwill wait forever for jobs to finish, unless a shorter wait time is specified.
-help
-version
-debug
-status
-echo
-wait seconds
-num number-of-jobs
log file
job ID
condor_waitis an inexpensive way to test or wait for the completion of a job or a whole cluster, if you are trying to get a process outside of HTCondor to synchronize with a job or set of jobs.
It can also be used to wait for the completion of a limited subset of jobs, via the -numoption.
condor_wait logfile
This command waits for all jobs that exist in logfileto complete.
condor_wait logfile 40
This command waits for all jobs that exist in logfilewith a job ClassAd attribute ClusterIdof 40 to complete.
condor_wait -num 2 logfile
This command waits for any two jobs that exist in logfileto complete.
condor_wait logfile 40.1
This command waits for job 40.1 that exists in logfileto complete.
condor_wait -wait 3600 logfile 40.1
This waits for job 40.1 to complete by watching logfile, but it will not wait more than one hour (3600 seconds).
condor_waitexits with 0 if and only if the specified job or jobs have completed or aborted. condor_waitreturns 1 if unrecoverable errors occur, such as a missing log file, if the job does not exist in the log file, or the user-specified waiting time has expired.
Center for High Throughput Computing, University of Wisconsin-Madison
Copyright (C) 1990-2016 Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI. All Rights Reserved. Licensed under the Apache License, Version 2.0.
May 2022 |