From 4424c52b9a8fcb6bef447e31317757c8c40543cb Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Wed, 25 Sep 2024 18:58:29 +0300 Subject: [PATCH] update tasks --- bots/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bots/tasks.py b/bots/tasks.py index c4a5d32..75b3c60 100644 --- a/bots/tasks.py +++ b/bots/tasks.py @@ -14,6 +14,7 @@ from djconfig import config @app.task(bind=True) def upload_image_rpc(self, queued_image_pk, fpath, caption): from .modules.channel_helper import QueuedItem + config._reload() try: logging.warning(f'Processing upload task for queued item #{queued_image_pk}') qi = QueuedItem.objects.get(pk=queued_image_pk) @@ -50,6 +51,7 @@ def upload_image_rpc(self, queued_image_pk, fpath, caption): @app.task(bind=True) def upload_animation_rpc(self, queued_image_pk, fpath, caption): from .modules.channel_helper import QueuedItem + config._reload() try: logging.warning(f'Processing upload task for queued animation item #{queued_image_pk}') qi = QueuedItem.objects.get(pk=queued_image_pk)