Jobs registered with schedule() can't be removed at runtime. This is needed for bots that conditionally disable scheduled tasks.
Proposed API
def unschedule(self, name: str) -> None
Example
bot.scheduler.unschedule("morning_update")
Before opening a PR
- Write unit tests
- Run
mypy matrix/
- Run
pytest tests/
- Run
black .
Jobs registered with
schedule()can't be removed at runtime. This is needed for bots that conditionally disable scheduled tasks.Proposed API
Example
Before opening a PR
mypy matrix/pytest tests/black .