Skip to content

Commit

Permalink
Merge pull request #73 from TogetherCrew/fix/72-memory-leak
Browse files Browse the repository at this point in the history
fix: releasing memory manually after task was finished!
  • Loading branch information
cyri113 authored Jun 26, 2024
2 parents d5a4214 + e816671 commit 4854d21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions celery_app/tasks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import gc
import json
import logging
import os
Expand Down Expand Up @@ -120,3 +121,5 @@ def ask_question_auto_search(
queue_name=Queue.DISCORD_BOT,
content=response_payload,
)

gc.collect()

0 comments on commit 4854d21

Please sign in to comment.