mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
Properly take prompted inventory into account
This also will rename shard jobs to add an index to the job name
This commit is contained in:
committed by
AlanCoding
parent
8a18984be1
commit
44ffcf86de
@@ -117,6 +117,9 @@ class TaskManager():
|
||||
continue
|
||||
kv = spawn_node.get_job_kwargs()
|
||||
job = spawn_node.unified_job_template.create_unified_job(**kv)
|
||||
if 'job_shard' in spawn_node.ancestor_artifacts:
|
||||
job.name = "{} - {}".format(job.name, spawn_node.ancestor_artifacts['job_shard'] + 1)
|
||||
job.save()
|
||||
spawn_node.job = job
|
||||
spawn_node.save()
|
||||
logger.info('Spawned %s in %s for node %s', job.log_format, workflow_job.log_format, spawn_node.pk)
|
||||
|
||||
Reference in New Issue
Block a user