Revision aa9f8167

b/lib/jqueue.py
1194 1194

  
1195 1195
    try:
1196 1196
      job = self._LoadJobFromDisk(job_id)
1197
      if job is None:
1198
        return job
1197 1199
    except errors.JobFileCorrupted:
1198 1200
      old_path = self._GetJobPath(job_id)
1199 1201
      new_path = self._GetArchivedJobPath(job_id)
b/scripts/gnt-job
134 134
  """
135 135
  client = GetClient()
136 136

  
137
  rcode = 0
137 138
  for job_id in args:
138
    client.ArchiveJob(job_id)
139
    if not client.ArchiveJob(job_id):
140
      ToStderr("Failed to archive job with ID '%s'", job_id)
141
      rcode = 1
139 142

  
140
  return 0
143
  return rcode
141 144

  
142 145

  
143 146
def AutoArchiveJobs(opts, args):

Also available in: Unified diff