Skip to content

Scheduler: Add unschedule method #71

Description

@PenguinBoi12

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 .

Activity

  1. Shouryaverma19 commented on Jul 1, 2026

    @Shouryaverma19

    "Hey @PenguinBoi12! I just opened PR #83 for the list_jobs method on this same class. Since I'm already familiar with the Scheduler code, I'd love to take care of adding the unschedule method next. Could you please assign this to me?"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions