From f1e4932b17496bc087e422ae4edef966b1da127f Mon Sep 17 00:00:00 2001 From: BennyThink Date: Sun, 27 Feb 2022 20:12:44 +0800 Subject: [PATCH] store session file in worker --- ytdlbot/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytdlbot/tasks.py b/ytdlbot/tasks.py index 9075f8b..f472632 100644 --- a/ytdlbot/tasks.py +++ b/ytdlbot/tasks.py @@ -49,7 +49,7 @@ logging.getLogger('apscheduler.executors.default').propagate = False # app = Celery('celery', broker=BROKER, accept_content=['pickle'], task_serializer='pickle') app = Celery('tasks', broker=BROKER) -celery_client = create_app(":memory:") +celery_client = create_app() def get_messages(chat_id, message_id):