app/soc/cron/job.py
changeset 2244 96d8083cf974
parent 2243 c61f9dd5e325
child 2246 c29272f640b0
equal deleted inserted replaced
2243:c61f9dd5e325 2244:96d8083cf974
    93     job.status = 'waiting'
    93     job.status = 'waiting'
    94 
    94 
    95     return job.put()
    95     return job.put()
    96 
    96 
    97   def timeoutJob(self, job_key):
    97   def timeoutJob(self, job_key):
    98     """A transaction to tiemout a job.
    98     """A transaction to timeout a job.
    99     """
    99     """
   100 
   100 
   101     job = Job.get_by_id(job_key)
   101     job = Job.get_by_id(job_key)
   102 
   102 
   103     job.timeouts += 1
   103     job.timeouts += 1