Versions Compared

Key

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

...

Horizontal Navigation Bar


Button Group

Button Hyperlink
titlePrevious
typestandard
urlhttps://confluence.ecmwf.int/display/ECFLOW/Labels
Button Hyperlink
titleUp
typestandard
urlhttps://softwareconfluence.ecmwf.int/wiki/display/ECFLOW/Going+Further
Button Hyperlink
titleNext
typestandard
urlhttps://confluence.ecmwf.int/display/ECFLOW/Advanced+Topics


...

We will use query command, to determine the state of a node, event, meter.  An alternative to the query command would be to use the python apiAPI.

The general format is:

Code Block
languagebash
titlequery command
ecflow_client --query arg1 arg2 arg3

...

  1. Go back to the previous exercise where we finished adding a meter.
  2. Edit the definition file or python to add the modifications. You should only need to add a task query.
  3. create file query.ecf to call ecflow_client –query
  4. Replace the suite
    python: python3 test.py ; python3 client.py
    text:      ecflow_client --suspend=/test   ; ecflow_client --replace=/test  test.def
  5. Observe the tasks in ecflow_ui
  6. Modify query.ecf, to use ecflow_client --query variable, and show this variable in the query label. 

    Note

    Although a variable is accessible in the script by using %VAR%, ecflow_client --query variable might be more useful in a an interactive shell or a different server


       

Horizontal Navigation Bar


Button Group

Button Hyperlink
titlePrevious
typestandard
urlhttps://confluence.ecmwf.int/display/ECFLOW/Labels
Button Hyperlink
titleUp
typestandard
urlhttps://softwareconfluence.ecmwf.int/wiki/display/ECFLOW/Going+Further
Button Hyperlink
titleNext
typestandard
urlhttps://confluence.ecmwf.int/display/ECFLOW/Advanced+Topics


...