mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Fix an issue where extra data wasn't being passed down to system jobs
from the schedules
This commit is contained in:
@@ -104,7 +104,7 @@ def tower_periodic_scheduler(self):
|
||||
logger.warn("Cache timeout is in the future, bypassing schedule for template %s" % str(template.id))
|
||||
continue
|
||||
new_unified_job = template.create_unified_job(launch_type='scheduled', schedule=schedule)
|
||||
can_start = new_unified_job.signal_start(**schedule.extra_data)
|
||||
can_start = new_unified_job.signal_start(extra_vars=schedule.extra_data)
|
||||
if not can_start:
|
||||
new_unified_job.status = 'failed'
|
||||
new_unified_job.job_explanation = "Scheduled job could not start because it was not in the right state or required manual credentials"
|
||||
|
||||
Reference in New Issue
Block a user