From 73e1c1d7e6b805a81cf40a7c0370dd3693664b87 Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Tue, 3 Jun 2025 15:10:53 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=8B=D1=82=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D0=B0=20=D1=82=D0=B0=D0=BA=D1=81=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/schedulers/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/schedulers/tasks.py b/apps/schedulers/tasks.py index a97a39a..17ae45b 100644 --- a/apps/schedulers/tasks.py +++ b/apps/schedulers/tasks.py @@ -16,6 +16,7 @@ from datetime import date, datetime, timedelta import requests import requests.exceptions as rex from bs4 import BeautifulSoup +from celery import shared_task from django.conf import settings from django.utils import timezone from django.core.cache import cache @@ -929,7 +930,7 @@ def load_navigation(): logging.error(traceback.format_exc()) -@app.task() +@shared_task() def test_circuit(): MAX_SPEED_KPH = 50 try: