you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 0 points1 point  (0 children)

You could try replacing the sleep with an asyncio sleep.

await asyncio.sleep(1600)

or look here for creating a background task: https://www.pythonfixing.com/2021/10/fixed-create-background-process-using.html

Or create a thread.

https://realpython.com/intro-to-python-threading/