Skip to content

API Reference parrot.handlers.scheduler

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.handlers.scheduler

View source

REST handlers for Parrot scheduler management.

Alias NotEditableError

Re-exported from parrot.scheduler.base.NotEditableError.

Alias ScheduleType

Re-exported from parrot.scheduler.ScheduleType.

Class SchedulerCallbacksHandler

List supported scheduler callbacks and scheduler types.

Method SchedulerCallbacksHandler.post_init

post_init(*args, **kwargs)

Parameter Type Default Description
*args ()
**kwargs {}

Method SchedulerCallbacksHandler.get

get() -> web.Response

Returns: web.Response

Class SchedulerCatalogHelper

Helper for scheduler metadata exposed through REST endpoints.

Method SchedulerCatalogHelper.list_schedule_types

list_schedule_types() -> list[str]

Returns: list[str]

Method SchedulerCatalogHelper.list_backends

list_backends(app: web.Application) -> list[str]

Parameter Type Default Description
app web.Application

Returns: list[str]

Method SchedulerCatalogHelper.list_callbacks

list_callbacks() -> list[dict[str, Any]]

Returns: list[dict[str, Any]]

Alias SchedulerConfigError

Re-exported from parrot.scheduler.sanitize.SchedulerConfigError.

Class SchedulerJobsHandler

CRUD handler for scheduler jobs persisted in APScheduler and Postgres.

Attributes:

Attribute Type Description
manager

Method SchedulerJobsHandler.post_init

post_init(*args, **kwargs)

Parameter Type Default Description
*args ()
**kwargs {}

Method SchedulerJobsHandler.get

get() -> web.Response

Returns: web.Response

Method SchedulerJobsHandler.post

post() -> web.Response

Returns: web.Response

Method SchedulerJobsHandler.patch

patch() -> web.Response

Returns: web.Response

Method SchedulerJobsHandler.delete

delete() -> web.Response

Returns: web.Response

Class SchedulerLastResultHandler

GET /api/v1/parrot/scheduler/schedules/{schedule_id}/last-result.

Read-only view of a schedule's last execution: last_run, next_run, run_count, and the result/error metadata stamped by :meth:AgentSchedulerManager._update_schedule_run (FEAT-467 TASK-2520) — populated after either a normally scheduled run or a PATCH action="run_now" (both go through the same completion path, so this endpoint reflects whichever ran most recently).

Attributes:

Attribute Type Description
manager

Method SchedulerLastResultHandler.post_init

post_init(*args, **kwargs)

Parameter Type Default Description
*args ()
**kwargs {}

Method SchedulerLastResultHandler.get

get() -> web.Response

Returns: web.Response

Alias SchedulerRunNowConflictError

Re-exported from parrot.scheduler.base.SchedulerRunNowConflictError.

Alias SchedulerUnavailableError

Re-exported from parrot.scheduler.base.SchedulerUnavailableError.

Alias TargetMissingError

Re-exported from parrot.scheduler.base.TargetMissingError.

Alias list_supported_callbacks

Re-exported from parrot.scheduler.functions.list_supported_callbacks.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally