Skip to content

Commit

Permalink
fix: no need to forget the asyncResult!
Browse files Browse the repository at this point in the history
when we're not assining forget, it wouldn't save the result to any backend resources.
  • Loading branch information
amindadgar committed Jun 27, 2024
1 parent 032167e commit 79f00a3
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 79f00a3

Please sign in to comment.