pre-commit-ci[bot] on pre-commit-ci-update-config
[pre-commit.ci] pre-commit auto… (compare)
agronholm on master
Updated build status badge in R… (compare)
CronTriggerinstances and combine them with
also btw, is there a way to use an AsyncScheduler without using async with ?
I was randomly play testing and discovered that this is apparently the only way to replicate old .start() behavior
I see, well I work on a discord bot (chat bot), in which it executes itself in a different loop, then in commands, we usually add events to make the bot keep executing those Scheduler functions without interrupting the main execution, hence why in my code I can't use the async with due to it being functions that make callbacks to existing elements.
For example, in the older Apscheduler, this is how I used to do stuff there
Well, mostly by the fact that I can't add schedulers or execute them within an async context manager, due to the main loop executing and making function calls in order to add the scheduled tasks
• Bot runs
• Scheduler executing
• Bot's commands invoke .add_schedule() within functions, and I can't really keep a while True loop open in a command in order to keep a Scheduler executing ^^;