aboutsummaryrefslogtreecommitdiff
path: root/schedule.ccl
blob: 971a67dee253425c2af70bba1d7d421f0817f16d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Schedule definitions for thorn ManualTermination
# $Header$

STORAGE: watchminutes

if (on_remaining_walltime > 0)
{
  schedule ManualTermination_StartTimer at WRAGH
  {
    LANG:C
  } "Start timer"

  schedule ManualTermination_ResetMinutes at POST_RECOVER_VARIABLES
  {
    LANG:C
  } "Reset Watchtime"

  schedule ManualTermination_CheckWalltime at EVOL
  {
    LANG:C
  } "Check elapsed job walltime"
}

if (termination_from_file)
{
  schedule ManualTermination_Init at WRAGH
  {
    LANG:C
  } "Initialise manual termination"

  schedule ManualTerminationFile at EVOL
  {
    LANG:C
  } "Check termination file"

  schedule ManualTermination_Cleanup at SHUTDOWN
  {
    LANG:C
  } "Clean up termination file"
}