Skip to content

Commit cec7ca4

Browse files
committed
Reverting last change
1 parent 4b17051 commit cec7ca4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

qiita_db/analysis.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,8 @@ def create(cls, owner, name, description, from_default=False,
184184
qdb.sql_connection.TRN.add(sql, [a_id, job.id])
185185
qdb.sql_connection.TRN.execute()
186186

187-
# Don't submit the job until the transaction commits
188-
qdb.sql_connection.TRN.add_post_commit_func(job.submit)
189-
187+
# Doing the submission outside of the transaction
188+
job.submit()
190189
return instance
191190

192191
@classmethod

0 commit comments

Comments
 (0)