mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 22:49:32 -02:30
Merge pull request #6044 from fosterseth/fix-4418-failing_successful_updates
Do not fail a successful project update if inventory update fails
Reviewed-by: Seth Foster
https://github.com/fosterseth
This commit is contained in:
@@ -584,7 +584,7 @@ def handle_work_error(task_id, *args, **kwargs):
|
|||||||
first_instance = instance
|
first_instance = instance
|
||||||
first_instance_type = each_task['type']
|
first_instance_type = each_task['type']
|
||||||
|
|
||||||
if instance.celery_task_id != task_id and not instance.cancel_flag:
|
if instance.celery_task_id != task_id and not instance.cancel_flag and not instance.status == 'successful':
|
||||||
instance.status = 'failed'
|
instance.status = 'failed'
|
||||||
instance.failed = True
|
instance.failed = True
|
||||||
if not instance.job_explanation:
|
if not instance.job_explanation:
|
||||||
@@ -1692,7 +1692,7 @@ class RunJob(BaseTask):
|
|||||||
if settings.MAX_FORKS > 0 and job.forks > settings.MAX_FORKS:
|
if settings.MAX_FORKS > 0 and job.forks > settings.MAX_FORKS:
|
||||||
logger.warning(f'Maximum number of forks ({settings.MAX_FORKS}) exceeded.')
|
logger.warning(f'Maximum number of forks ({settings.MAX_FORKS}) exceeded.')
|
||||||
args.append('--forks=%d' % settings.MAX_FORKS)
|
args.append('--forks=%d' % settings.MAX_FORKS)
|
||||||
else:
|
else:
|
||||||
args.append('--forks=%d' % job.forks)
|
args.append('--forks=%d' % job.forks)
|
||||||
if job.force_handlers:
|
if job.force_handlers:
|
||||||
args.append('--force-handlers')
|
args.append('--force-handlers')
|
||||||
|
|||||||
Reference in New Issue
Block a user