Revision 07cd723a scripts/gnt-job

b/scripts/gnt-job
116 116
  return 0
117 117

  
118 118

  
119
def AutoArchiveJobs(opts, args):
120
  client = GetClient()
121

  
122
  age = args[0]
123

  
124
  if age == 'all':
125
    age = -1
126
  else:
127
    age = ParseTimespec(age)
128

  
129
  client.AutoArchiveJobs(age)
130
  return 0
131

  
132

  
119 133
def CancelJobs(opts, args):
120 134
  client = GetClient()
121 135

  
......
261 275
              [DEBUG_OPT],
262 276
              "<job-id> [<job-id> ...]",
263 277
              "Archive specified jobs"),
278
  'autoarchive': (AutoArchiveJobs, ARGS_ONE,
279
              [DEBUG_OPT],
280
              "<age>",
281
              "Auto archive jobs older than the given age"),
264 282
  'cancel': (CancelJobs, ARGS_ANY,
265 283
             [DEBUG_OPT],
266 284
             "<job-id> [<job-id> ...]",

Also available in: Unified diff