File: ecflow_faq.ddoc

package info (click to toggle)
ecflow 5.15.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,868 kB
  • sloc: cpp: 269,341; python: 22,756; sh: 3,609; perl: 770; xml: 333; f90: 204; ansic: 141; makefile: 70
file content (24 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

How have a task that run even ifs aborted
==========================================

task t2
   trigger t1 eq complete
   cron 00:10
   event nok

task memo # this task is just to keep memory of the problem met with t2
   trigger t3:nok

task watchdog # script to requeue t2 when aborted
   cron 00:10
   trigger t2 eq aborted

This pattern consider the case where you design the t2 task wrapper with code like
   #ksh script
   if [[ ! -f $file ]] ; then xevent nok; sleep 60; fi
   cmd || xevent nok # raise the event when the command has a problem
   set +e # in some section of the code known to raise issue, closed with set -e
   
   
See: https://software.ecmwf.int/issues/browse/SUP-640