@ -621,14 +621,14 @@ class TaskExecutor:
self . _final_q . send_callback (
' v2_runner_on_async_failed ' ,
TaskResult ( self . _host . name ,
self . _task , # We send the full task here, because the controller knows nothing about it, the TE created it
self . _task . _uuid ,
result ,
task_fields = self . _task . dump_attrs ( ) ) )
else :
self . _final_q . send_callback (
' v2_runner_on_async_ok ' ,
TaskResult ( self . _host . name ,
self . _task , # We send the full task here, because the controller knows nothing about it, the TE created it
self . _task . _uuid ,
result ,
task_fields = self . _task . dump_attrs ( ) ) )
@ -797,7 +797,7 @@ class TaskExecutor:
# that (with a sleep for "poll" seconds between each retry) until the
# async time limit is exceeded.
async_task = Task ( ) . load ( dict ( action = ' async_status jid=%s ' % async_jid , environment = self . _task . environment ) )
async_task = Task . load ( dict ( action = ' async_status ' , args = { ' jid ' : async_jid } , environment = self . _task . environment ) )
# FIXME: this is no longer the case, normal takes care of all, see if this can just be generalized
# Because this is an async task, the action handler is async. However,
@ -849,9 +849,9 @@ class TaskExecutor:
' v2_runner_on_async_poll ' ,
TaskResult (
self . _host . name ,
async_task , # We send the full task here, because the controller knows nothing about it, the TE created it
async_task . _uuid ,
async_result ,
task_fields = self . _task. dump_attrs ( ) ,
task_fields = async _task. dump_attrs ( ) ,
) ,
)
@ -863,7 +863,7 @@ class TaskExecutor:
else :
# If the async task finished, automatically cleanup the temporary
# status file left behind.
cleanup_task = Task ( ) . load (
cleanup_task = Task . load (
{
' async_status ' : {
' jid ' : async_jid ,