stop commit error when running celery as eager
This commit is contained in:
Родитель
a083b1aabe
Коммит
91f5010515
|
@ -282,6 +282,7 @@ def app_review(request, addon):
|
|||
# Temp. reindex the addon now it's been committed.
|
||||
if not settings.IN_TEST_SUITE and request.method == 'POST':
|
||||
index_addons.delay([addon.pk])
|
||||
transaction.commit()
|
||||
if resp:
|
||||
return resp
|
||||
raise
|
||||
|
|
Загрузка…
Ссылка в новой задаче