mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 04:30:05 -03:30
Disable transaction middleware when starting jobs via the API (only for tests).
This commit is contained in:
@@ -65,7 +65,8 @@ class Command(NoArgsCommand):
|
||||
except Job.DoesNotExist:
|
||||
raise CommandError('Job with ID %d not found' % job_id)
|
||||
if job.status != 'running':
|
||||
raise CommandError('Unable to add event except when job is running')
|
||||
raise CommandError('Unable to add event except when job is running'
|
||||
', status is currently %s' % job.status)
|
||||
try:
|
||||
if event_data_json is None:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user