diff options
author | eschnett <eschnett@ec5ace1c-6809-4267-9cad-ed2f0ecfe59c> | 2011-01-28 17:44:49 +0000 |
---|---|---|
committer | eschnett <eschnett@ec5ace1c-6809-4267-9cad-ed2f0ecfe59c> | 2011-01-28 17:44:49 +0000 |
commit | 593aad5ad8a3ee56f97a986743b530f25a23a887 (patch) | |
tree | dc6a8271b83af8543d2f8e2fe2cabca2676f230d | |
parent | 4d99650c95c04ff0aefc0009c25345437eb6ca7b (diff) |
Update schedule so that the termination parameters can be steered
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/TerminationTrigger/trunk@9 ec5ace1c-6809-4267-9cad-ed2f0ecfe59c
-rw-r--r-- | schedule.ccl | 58 |
1 files changed, 28 insertions, 30 deletions
diff --git a/schedule.ccl b/schedule.ccl index 88f3c60..6355fbf 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -1,38 +1,36 @@ # Schedule definitions for thorn TerminationTrigger -if (on_remaining_walltime > 0) +STORAGE: watchminutes + + + +SCHEDULE TerminationTrigger_StartTimer AT wragh { - STORAGE: watchminutes - - SCHEDULE TerminationTrigger_StartTimer AT wragh - { - LANG: C - } "Start timer" - - SCHEDULE TerminationTrigger_ResetMinutes AT post_recover_variables - { - LANG: C - OPTIONS: global - } "Reset Watchtime" - - SCHEDULE TerminationTrigger_CheckWalltime AT analysis - { - LANG: C - } "Check elapsed job walltime" -} + LANG: C +} "Start timer" -if (termination_from_file) +SCHEDULE TerminationTrigger_ResetMinutes AT post_recover_variables { - if (create_termination_file) - { - SCHEDULE TerminationTrigger_CreateFile AT wragh - { - LANG: C - } "Create termination file" - } - - SCHEDULE TerminationTrigger_CheckFile AT analysis + LANG: C + OPTIONS: global +} "Reset Watchtime" + +SCHEDULE TerminationTrigger_CheckWalltime AT analysis +{ + LANG: C +} "Check elapsed job walltime" + + + +if (create_termination_file) +{ + SCHEDULE TerminationTrigger_CreateFile AT wragh { LANG: C - } "Check termination file" + } "Create termination file" } + +SCHEDULE TerminationTrigger_CheckFile AT analysis +{ + LANG: C +} "Check termination file" |