store session file in worker

This commit is contained in:
BennyThink 2022-02-27 20:12:44 +08:00
parent a57d204b11
commit f1e4932b17
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481

View File

@ -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):