mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Apply immediate reschedule.
This commit is contained in:
parent
9e244b640b
commit
a8a3835308
@ -72,7 +72,7 @@ from awx.api.serializers import * # noqa
|
||||
from awx.api.metadata import RoleMetadata
|
||||
from awx.main.consumers import emit_channel_notification
|
||||
from awx.main.models.unified_jobs import ACTIVE_STATES
|
||||
#from awx.main.scheduler.tasks import run_job_complete
|
||||
from awx.main.scheduler.tasks import run_job_complete
|
||||
|
||||
logger = logging.getLogger('awx.api.views')
|
||||
|
||||
@ -2875,7 +2875,7 @@ class WorkflowJobCancel(RetrieveAPIView):
|
||||
if obj.can_cancel:
|
||||
obj.cancel()
|
||||
#TODO: Figure out whether an immediate schedule is needed.
|
||||
#run_job_complete.delay(obj.id)
|
||||
run_job_complete.delay(obj.id)
|
||||
return Response(status=status.HTTP_202_ACCEPTED)
|
||||
else:
|
||||
return self.http_method_not_allowed(request, *args, **kwargs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user