I have a async function and need to run in with apscheduller every N minutes. There is a python code below
URL_LIST = [\'\', \'
Just pass fetch_all to scheduler.add_job() directly. The asyncio scheduler supports coroutine functions as job targets.
fetch_all
scheduler.add_job()
If the target callable is not a coroutine function, it will be run in a worker thread (due to historical reasons), hence the exception.