Versions Compared

Key

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

In order to use meters you have to first define the meter in the suite definition file, e.g.

Code Block
suite x

...


 family f

...


 task t

...


 meter foo 0 100 100


foo is the "name" of the meter and the three numbers are minimum, maximum, and threshold values for the meter. The default value is the minimum value (the value show when the suite begins). After the command "begin" it looks like:

In the ecFlow job file you can then modify your task to change the meter while the job is running, e.g. like:

Code Block
ecflow_client --init $$

...


 for i in 10 20 30 40 ... ; do

...


 ecflow_client --meter foo $i

...


 sleep 1

...


 done

...


 ecflow_client --complete

After the job has modified the meter a few times it looks like:

And in the end the meter looks like: