mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 01:08:48 -03:30
Merge pull request #2524 from AlanCoding/schedule_log
Add missing job lifecycle log for schedule spawns
This commit is contained in:
@@ -446,6 +446,8 @@ def awx_periodic_scheduler(self):
|
|||||||
try:
|
try:
|
||||||
job_kwargs = schedule.get_job_kwargs()
|
job_kwargs = schedule.get_job_kwargs()
|
||||||
new_unified_job = schedule.unified_job_template.create_unified_job(**job_kwargs)
|
new_unified_job = schedule.unified_job_template.create_unified_job(**job_kwargs)
|
||||||
|
logger.info(six.text_type('Spawned {} from schedule {}-{}.').format(
|
||||||
|
new_unified_job.log_format, schedule.name, schedule.pk))
|
||||||
|
|
||||||
if invalid_license:
|
if invalid_license:
|
||||||
new_unified_job.status = 'failed'
|
new_unified_job.status = 'failed'
|
||||||
|
|||||||
Reference in New Issue
Block a user