equal
deleted
inserted
replaced
17 """Cron jobs. |
17 """Cron jobs. |
18 """ |
18 """ |
19 |
19 |
20 __authors__ = [ |
20 __authors__ = [ |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
|
22 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
22 ] |
23 ] |
23 |
24 |
24 |
25 |
25 import logging |
26 import logging |
26 |
27 |
138 db.run_in_transaction(self.abortJob, job_key) |
139 db.run_in_transaction(self.abortJob, job_key) |
139 return True |
140 return True |
140 |
141 |
141 task = self.tasks[job.task_name] |
142 task = self.tasks[job.task_name] |
142 |
143 |
143 # excecute the actual job |
144 # execute the actual job |
144 task(job) |
145 task(job) |
145 |
146 |
146 db.run_in_transaction(self.finishJob, job_key) |
147 db.run_in_transaction(self.finishJob, job_key) |
147 return True |
148 return True |
148 except DeadlineExceededError, exception: |
149 except DeadlineExceededError, exception: |