from apscheduler.schedulers.asyncio import AsyncIOScheduler
async def main():
print(f'Hello world')
if __name__ == '__main__':
scheduler = AsyncIOScheduler(timezone='Europe/Warsaw')
# scheduler.add_job(main, 'interval', seconds=600)
scheduler.add_job(main, 'cron', hour=12, minute=0, second=0)
scheduler.start()
import schedule
def main():
print(f'Hello world')
if __name__ == '__main__':
schedule.every(4).seconds.do(main)
while True:
schedule.run_pending()
time.sleep(1)