Disable transaction middleware when starting jobs via the API (only for tests).

This commit is contained in:
Chris Church
2013-05-14 15:29:04 -04:00
parent 0818e6ab3d
commit e528ede913
2 changed files with 89 additions and 6 deletions

View File

@@ -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: