-
Adapting examples from the docs, the following doesn't seem to execute the async function: from asyncz.schedulers.asyncio import AsyncIOScheduler
from asyncz.triggers import IntervalTrigger
scheduler = AsyncIOScheduler()
scheduler.start()
async def test_task():
print("this is a test task!")
scheduler.add_task(
fn=test_task,
trigger=IntervalTrigger(seconds=2),
max_instances=1,
replace_existing=True,
coalesce=True,
)
scheduler.process_tasks()
scheduler.shutdown() |
Beta Was this translation helpful? Give feedback.
Answered by
devkral
Jul 29, 2024
Replies: 2 comments
-
Hi @tehfink thank you for reporting this. Allow me some time to check and test on my side and I will come back to you. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It should work now. I added a specific test for it recently. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
devkral
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should work now. I added a specific test for it recently.