[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Condor Call back mechanism



On 6/1/07, Ian Chesal <ICHESAL@xxxxxxxxxx> wrote:
> Several solution 'fragments'

I'll add to this: have your jobs remain in the queue after they're
complete (see:
http://www.cs.wisc.edu/condor/manual/v6.8/condor_submit.html#55420) by
adding to your submit ticket:

        leave_in_queue = true

Periodically scan your queue with:

        foreach $job (condor_q -const 'JobStatus == 4') {
                do something
                condor_rm $job
        }

- Ian

Take care when using this technique not to poll the queue too
frequently...the additional load on the schedd can use issues. Also
this would preclude using the leave_in_queue option for the jobs in
some other capacity.

That said this is a very clean and simpe way to do it

Matt