Versions Compared

Key

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

...



This is  small follow up exercise where we will use embedded triggers.  

These are triggers trigger expression embedded within the scripts.

Whilst the expression is not true  true, then job will hold

Ecf Script

...

  1. Edit the suite definition file to add the trigger.
  2. Replace the suite
    python:   python3 test.py ;  python3 client.py
    text:        ecflow_client --suspend=/test ; ecflow_client --replace=/test  test.def
  3. Observe the tasks in ecflow_ui .
  4. Notice the wait icon on task t2.
  5. Introduce an error in the wait expression and ensure that abort the job

    Code Block
    languagebash
    titleIntroduce error in wait expression
    ecflow_client --wait="txx == complete"  # there is no node with name tax, this should abort the task


  6. Introduce an impossible expression, what is the effect. 

    Code Block
    ecflow_client --wait="1 == 0" # this expression will never be satisfied.


     

Horizontal Navigation Bar


Button Group

Button Hyperlink
titlePrevious
typestandard
urlhttps://confluence.ecmwf.int/display/ECFLOW/Add+Trigger
Button Hyperlink
titleUp
typestandard
urlhttps://software.ecmwf.int/wiki/display/ECFLOW/Going+Further
Button Hyperlink
titleNext
typestandard
urlhttps://confluence.ecmwf.int/display/ECFLOW/Add+an+event


...