Lines Matching refs:job

73     echo '        Assign this job to class <class>.  Useful for querying'
77 echo ' Ignore this job if it cannot be executed immediately.'
175 # get the next job id
187 postrun_debug "Ignoring job, because -i was used and it's not possible to run it now"
191 # check if there's already a spooled job for the same command
211 postrun_debug "matching spooled uniq job (#${uniq_job_nr}) found"
212 # we found a matching spooled uniq job
214 # flagged as a uniq job
235 # Use a new job id so that the job moves to the end of the queue.
237 # any stage, the job is not lost and is not in the queue twice:
239 # Step 1: copy the job to the new id:
242 # Step 2: move the original job ctrl file to the new id:
245 # Step 3: replace the original job ctrl file with the updated one:
251 postrun_debug "spooling command as job #${job_seq}"
276 cmdfile=`mktemp /tmp/postrun.job.XXXX`
281 # this script to the background job script
289 echo 'echo Starting postrun job at `LC_ALL=C date`' >> $cmdfile
292 echo "echo 'This is a spooled background job (#${postrun_job_number})'" >> $cmdfile
294 echo "echo 'This is a spooled foreground job (#${postrun_job_number})'" >> $cmdfile
300 echo 'echo This is an immediate background job' >> $cmdfile
302 echo 'echo This is an immediate foreground job' >> $cmdfile
446 for job in $all_jobs; do
447 test -f "$job" || continue
478 echo "postrun: WARNING: invalid setting in $job: $var"
481 done < $job
482 postrun_command_file=$SPOOLDIR/`basename $job .ctrl`.cmd
483 postrun_job_number=`basename $job .ctrl`
485 # if it's a uniq job, check if it timed out
493 rm -f $job
503 rm -f $job
506 # ignore timeout, just run the job
508 rm -f $job
655 # when we have to spool the job
667 # commands (since the job is not spooled)