Skip to content

Commit

Permalink
chore(text upload): ignore results of celery task
Browse files Browse the repository at this point in the history
Celery tasks results are important when not controlled for in logs or in a notification system likes slack, in our case we are controlling for the results, thus storing them simply adds latency to the process
  • Loading branch information
akiva10b committed Sep 5, 2024
1 parent f543ba8 commit 2c7baba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sefaria/helper/texts/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def save_changes(changes, func, method):
results.append({'status': 'ok'})
return jsonResponse(results)

@app.task(name="web.save_change", acks_late=True)
@app.task(name="web.save_change", acks_late=True, ignore_result=True)
def save_change(func_name, raw_history_change):
function_names = {'save_link': save_link, 'save_version': save_version}
func = function_names[func_name]
Expand Down

0 comments on commit 2c7baba

Please sign in to comment.