...
Heres how it could be used in a script:
Code Block | ||
---|---|---|
| ||
step="" QNAME="my_queue_name" while [1 == 1 ] ; do # this return the first queued/aborted step, then increments to next step, return <NULL> when all steps processed step=$(ecflow_client --queue=$QNAME active) # of the form string i.e \"003\". this step is now active if [[ $step == "<NULL>" ]] ; then break; # no more steps fi ... ecflow_client --queue=$QNAME $step complete # tell ecflow this step completed done trap() { ecflow_client --queue=$QNAME $step aborted # tell ecflow this step failed } |
...