File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
docs/framework_integrations Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ bot = Bot(token="TOKEN")
6767@dp.startup ()
6868async def setup_taskiq (bot : Bot, * _args , ** _kwargs ):
6969 # Here we check if it's a clien-side,
70- # Becuase otherwise you're going to
70+ # Because otherwise you're going to
7171 # create infinite loop of startup events.
7272 if not broker.is_worker_process:
7373 logging.info(" Setting up taskiq" )
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " taskiq"
3- version = " 0.11.1 "
3+ version = " 0.11.2 "
44description = " Distributed task queue with full async support"
55authors = [" Pavel Kirilin <win10@list.ru>" ]
66maintainers = [" Pavel Kirilin <win10@list.ru>" ]
Original file line number Diff line number Diff line change @@ -144,9 +144,6 @@ async def run_scheduler_loop(scheduler: TaskiqScheduler) -> None:
144144 running_schedules = set ()
145145 while True :
146146 # We use this method to correctly sleep for one minute.
147- next_minute = datetime .now ().replace (second = 0 , microsecond = 0 ) + timedelta (
148- minutes = 1 ,
149- )
150147 scheduled_tasks = await get_all_schedules (scheduler )
151148 for source , task_list in scheduled_tasks .items ():
152149 for task in task_list :
@@ -165,7 +162,9 @@ async def run_scheduler_loop(scheduler: TaskiqScheduler) -> None:
165162 )
166163 running_schedules .add (send_task )
167164 send_task .add_done_callback (running_schedules .discard )
168-
165+ next_minute = datetime .now ().replace (second = 0 , microsecond = 0 ) + timedelta (
166+ minutes = 1 ,
167+ )
169168 delay = next_minute - datetime .now ()
170169 await asyncio .sleep (delay .total_seconds ())
171170
You can’t perform that action at this time.
0 commit comments