|
|
@ -64,7 +64,13 @@ def job_execution_task_activity_callback(self, execution_id, *args, **kwargs):
|
|
|
|
activity_callback=job_execution_task_activity_callback
|
|
|
|
activity_callback=job_execution_task_activity_callback
|
|
|
|
)
|
|
|
|
)
|
|
|
|
def run_ops_job_execution(execution_id, **kwargs):
|
|
|
|
def run_ops_job_execution(execution_id, **kwargs):
|
|
|
|
|
|
|
|
with tmp_to_root_org():
|
|
|
|
execution = get_object_or_none(JobExecution, id=execution_id)
|
|
|
|
execution = get_object_or_none(JobExecution, id=execution_id)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not execution:
|
|
|
|
|
|
|
|
logger.error("Did not get the execution: {}".format(execution_id))
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
with tmp_to_org(execution.org):
|
|
|
|
with tmp_to_org(execution.org):
|
|
|
|
execution.start()
|
|
|
|
execution.start()
|
|
|
|