@@ -214,12 +214,7 @@ def request(liveaction):
214
214
215
215
216
216
def update_status (
217
- liveaction ,
218
- new_status ,
219
- result = None ,
220
- publish = True ,
221
- set_result_size = False ,
222
- context = None ,
217
+ liveaction , new_status , result = None , publish = True , set_result_size = False
223
218
):
224
219
if liveaction .status == new_status :
225
220
return liveaction
@@ -231,7 +226,6 @@ def update_status(
231
226
"status" : new_status ,
232
227
"result" : result ,
233
228
"publish" : False ,
234
- "context" : context ,
235
229
}
236
230
237
231
if new_status in action_constants .LIVEACTION_COMPLETED_STATES :
@@ -310,10 +304,7 @@ def request_cancellation(liveaction, requester):
310
304
else :
311
305
status = action_constants .LIVEACTION_STATUS_CANCELED
312
306
313
- liveaction .context ["cancelled_by" ] = requester
314
- liveaction = update_status (
315
- liveaction , status , result = result , context = liveaction .context
316
- )
307
+ liveaction = update_status (liveaction , status , result = result )
317
308
318
309
execution = ActionExecution .get (liveaction__id = str (liveaction .id ))
319
310
@@ -355,12 +346,7 @@ def request_pause(liveaction, requester):
355
346
% liveaction .id
356
347
)
357
348
358
- liveaction .context ["paused_by" ] = requester
359
- liveaction = update_status (
360
- liveaction ,
361
- action_constants .LIVEACTION_STATUS_PAUSING ,
362
- context = liveaction .context ,
363
- )
349
+ liveaction = update_status (liveaction , action_constants .LIVEACTION_STATUS_PAUSING )
364
350
365
351
execution = ActionExecution .get (liveaction__id = str (liveaction .id ))
366
352
@@ -404,12 +390,7 @@ def request_resume(liveaction, requester):
404
390
'not in "paused" state.' % (liveaction .id , liveaction .status )
405
391
)
406
392
407
- liveaction .context ["resumed_by" ] = requester
408
- liveaction = update_status (
409
- liveaction ,
410
- action_constants .LIVEACTION_STATUS_RESUMING ,
411
- context = liveaction .context ,
412
- )
393
+ liveaction = update_status (liveaction , action_constants .LIVEACTION_STATUS_RESUMING )
413
394
414
395
execution = ActionExecution .get (liveaction__id = str (liveaction .id ))
415
396
0 commit comments