do not split JT callback jobs

This commit is contained in:
AlanCoding 2018-10-03 20:56:16 -04:00
parent 47711bc007
commit dccd7f2e9d
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -3369,6 +3369,7 @@ class JobTemplateCallback(GenericAPIView):
if extra_vars is not None and job_template.ask_variables_on_launch:
extra_vars_redacted, removed = extract_ansible_vars(extra_vars)
kv['extra_vars'] = extra_vars_redacted
kv['_prevent_sharding'] = True # will only run against 1 host, so no point
with transaction.atomic():
job = job_template.create_job(**kv)