Вызов функции asyncio
async def scheduler(time):
aioschedule.every().day.at(time_str=time).do(load_qwes)
print('Метка вызова времени')
while True:
await aioschedule.run_pending()
await asyncio.sleep(1)
async def on_startup(dp):
asyncio.create_task(scheduler('12:00'))
asyncio.create_task(scheduler('20:00'))
if __name__ == '__main__':
executor.start_polling(dp,on_startup=on_startup)
asyncio.create_task(scheduler('17:33')) вызывает функцию по scheduler 2 раза.
Как переделать, чтоб вызывал по одному разу.