Skip to content

Commit

Permalink
fix: trying to release AsynResult!
Browse files Browse the repository at this point in the history
amindadgar committed Jun 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a0ccc20 commit d5e4a4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion worker.py
Original file line number Diff line number Diff line change
@@ -32,11 +32,13 @@ 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!")
ask_question_auto_search.delay(
result = 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(

0 comments on commit d5e4a4a

Please sign in to comment.