Exemplo n.º 1
0
 def delete(self, ticket, *args, **kwargs):
     try:
         WorkflowManager.deleteExecution(self.id, ticket)
     except Exception, e:
         from raven.contrib.django.raven_compat.models import client
         client.captureException()
         pass
Exemplo n.º 2
0
 def update(self, ticket):
     keys = ['executionstatus', 'error', 'error_msg', 'workflowId', 'endpoint', 'asConfigId', 'createTime', 'expiry', 'startTime', 'Finished', 'exitcode', 'stdout', 'stderr', 'outputfolder', 'output', 'is_running']
     ret = WorkflowManager.getWorkflowInformation(self.id, ticket)
     is_running = False
     try:
         if self.task_id:
             is_running = not AsyncResult(self.task_id).ready()
     except Exception, e:
         pass