diff --git a/back/scheduler.py b/back/scheduler.py index cd44620..9842d9f 100644 --- a/back/scheduler.py +++ b/back/scheduler.py @@ -7,7 +7,7 @@ from .db import async_session app = Rocketry(execution="async") # Create task: -@app.task('minutely') +@app.task('daily') async def daily_check(): # Фильтруем по сроку годности await add_poems_and_filters.check_obsolete(async_session, current_date=datetime.date.today())