Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Heres how it could be used in a script:

Code Block
languagebash
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 }

...