From 79f00a3868ba6d9226de5d4245bad70f76aea15a Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Thu, 27 Jun 2024 09:46:36 +0330 Subject: [PATCH] fix: no need to forget the asyncResult! when we're not assining forget, it wouldn't save the result to any backend resources. --- worker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/worker.py b/worker.py index 95a7543..8224baf 100644 --- a/worker.py +++ b/worker.py @@ -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(