Skip to content

Commit c2086b7

Browse files
committed
Trying to fix the tests
1 parent 82751f6 commit c2086b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

qiita_db/analysis.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,10 @@ def create(cls, owner, name, description, from_default=False,
183183
VALUES (%s, %s)"""
184184
qdb.sql_connection.TRN.add(sql, [a_id, job.id])
185185
qdb.sql_connection.TRN.execute()
186-
job.submit()
187-
return instance
186+
187+
# Doing the submission outside of the transaction
188+
job.submit()
189+
return instance
188190

189191
@classmethod
190192
def delete(cls, _id):

0 commit comments

Comments
 (0)