Skip to content

Scheduler: Add list_jobs method #78

Description

@PenguinBoi12

There is currently no way to inspect which jobs are registered at runtime. list_jobs() returns their names, which is useful for admin commands or debugging.

Proposed API

def list_jobs(self) -> list[str]

Example

@bot.command()
async def jobs(ctx: Context):
    await ctx.reply("\n".join(bot.scheduler.list_jobs()))

Before opening a PR

  • Write unit tests
  • Run mypy matrix/
  • Run pytest tests/
  • Run black .

Metadata

Metadata

Labels

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions