Skip to content

Commit

Permalink
Merge pull request #79 from TogetherCrew/fix/72-memory-leak
Browse files Browse the repository at this point in the history
fix: no need to forget the asyncResult!
  • Loading branch information
amindadgar authored Jun 27, 2024
2 parents 032167e + 79f00a3 commit 9e9e7ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ def query_llm(recieved_data: dict[str, Any]):

community_id = fetch_community_id_by_guild_id(guild_id=recieved_input.guild_id)
logging.info(f"COMMUNITY_ID: {community_id} | Sending job to Celery!")
result = ask_question_auto_search.delay(
ask_question_auto_search.delay(
question=user_input,
community_id=community_id,
bot_given_info=recieved_data,
)
# releasing memory (maybe?)
result.forget()


@backoff.on_exception(
Expand Down

0 comments on commit 9e9e7ec

Please sign in to comment.