Exemple #1
0
 def xmlrpc_sync_run(self, task):
     task_id = uuid4().urn
     task['task_id'] = task_id
     apply_quirks(task)
     d = self.taskm.addTask(task)
     d.addErrback(self._sync_wrap, orig_env=task)
     return d
Exemple #2
0
 def _prepare_group(self, env):
     tasks = env['workers_jobs']
     group_id = 'GROUP_' + uuid4().urn
     env['group_id'] = group_id
     for task in tasks.itervalues():
         apply_quirks(task)
         task['group_id'] = group_id
         task['task_id'] = uuid4().urn
Exemple #3
0
 def xmlrpc_run(self, task):
     task_id = uuid4().urn
     task['task_id'] = task_id
     apply_quirks(task)
     d = self.taskm.addTask(task)
     d.addBoth(self.taskm.return_to_sio, url=task['return_url'],
             orig_env=task)
     return task_id