Versions Compared

Key

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

...


In the real world suites can have several thousand tasks. These tasks are not required all the time.

Having a server with a extremely large number of tasks can cause performance issues.

...

Let us modify the suite definition file again. To avoid waiting this exercise will archive immediately.

Code Block
languagebash
# Definition of the suite test.
suite test
 edit ECF_INCLUDE "$HOME/course"
 edit ECF_HOME    "$HOME/course"
 edit SLEEP 20
 family lf1
     autoarchive 0
     task t1 ;  task t2 ; task t3 ; task t4; task t5 ; task t6; task t7; task t8 ; task t9
 endfamily
 family lf2
     autoarchive 0
     task t1 ;  task t2 ; task t3 ; task t4; task t5 ; task t6; task t7; task t8 ; task t9
 endfamily
 family lf3
     autoarchive 0
     task t1 ;  task t2 ; task t3 ; task t4; task t5 ; task t6; task t7; task t8 ; task t9
 endfamily
 family restore
    # from ecflow 5.3.2 we can have
    # trigger ./lf1<flag>archived and ./lf2<flag>archived and ./lf3<flag>archived 
    # and there will also be *no* need for the 'edit SLEEP 60'
    trigger ./lf1 == complete and ./lf2 == complete and ./lf3 == complete
    task t1
       edit SLEEP 60                       # wait for autoarchive to complete                
       autorestore ../lf1 ../lf2 ../lf3.   # restore when t1 completes
 endfamily
endsuite

...