mirror of
https://github.com/ansible/awx.git
synced 2026-04-05 01:59:25 -02:30
Add endpoints for approval node notifications
...and also add a migration file.
This commit is contained in:
@@ -239,6 +239,12 @@ class TaskManager():
|
||||
task.send_notification_templates('running')
|
||||
logger.debug('Transitioning %s to running status.', task.log_format)
|
||||
schedule_task_manager()
|
||||
# Placeholder...
|
||||
elif type(task) is WorkflowApproval:
|
||||
task.status = 'pending'
|
||||
task.send_notification_templates('pending')
|
||||
logger.debug('Transitioning %s to pending status.', task.log_format)
|
||||
schedule_task_manager()
|
||||
elif not task.supports_isolation() and rampart_group.controller_id:
|
||||
# non-Ansible jobs on isolated instances run on controller
|
||||
task.instance_group = rampart_group.controller
|
||||
|
||||
Reference in New Issue
Block a user