Skip to content

API Reference parrot.integrations.core.queued.service

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

parrot.integrations.core.queued.service

View source

Local-first, bounded execution of platform-neutral queued commands.

Alias CommandJobContext

Re-exported from parrot.integrations.core.queued.context.CommandJobContext.

Alias CommandUsageError

Re-exported from parrot.integrations.core.queued.models.CommandUsageError.

Alias Deliver

Re-exported from parrot.integrations.core.queued.models.Deliver.

Alias JobManager

Re-exported from parrot.jobs.JobManager.

Alias JobNotice

Re-exported from parrot.integrations.core.queued.models.JobNotice.

Alias JobStatus

Re-exported from parrot.jobs.JobStatus.

Alias JobView

Re-exported from parrot.integrations.core.queued.models.JobView.

Alias PreparedCommand

Re-exported from parrot.integrations.core.queued.models.PreparedCommand.

Alias QueuedCommand

Re-exported from parrot.integrations.core.queued.models.QueuedCommand.

Class QueuedCommandService

Own one wrapper's jobs, concurrency groups and delivery callbacks.

Parameter Type Default Description
owner str
job_manager Optional[JobManager] None
use_redis bool True
key_prefix str 'parrot:chat_jobs'
job_ttl int 86400
expiry_grace float 300.0
prepare_timeout float 10.0
admission_timeout float 10.0
notify_timeout float 30.0

Method QueuedCommandService.start

Start idempotently without waiting for Redis connectivity.

start() -> None

Method QueuedCommandService.stop

Cancel live jobs with interruption reasons and drain bounded delivery.

stop() -> None

Method QueuedCommandService.submit

Prepare, reserve and schedule locally under one admission deadline.

submit(command: QueuedCommand, raw_args: str, requester: Requester, deliver: Deliver) -> SubmitOutcome

Parameter Type Default Description
command QueuedCommand
raw_args str
requester Requester
deliver Deliver

Returns: SubmitOutcome

Method QueuedCommandService.get

Read a fresh requester-scoped view with conservative foreign expiry.

get(job_id: str, requester: Requester) -> Optional[JobView]

Parameter Type Default Description
job_id str
requester Requester

Returns: Optional[JobView]

Method QueuedCommandService.list_for

Read the requester's newest jobs using the user index.

list_for(requester: Requester, limit: int = 10) -> List[JobView]

Parameter Type Default Description
requester Requester
limit int 10

Returns: List[JobView]

Method QueuedCommandService.cancel

Cancel only a live owned task belonging to the requester.

cancel(job_id: str, requester: Requester) -> Literal['cancelling', 'not_found', 'finished', 'not_on_this_worker']

Parameter Type Default Description
job_id str
requester Requester

Returns: Literal['cancelling', 'not_found', 'finished', 'not_on_this_worker']

Alias RedisJobStore

Re-exported from parrot.jobs.RedisJobStore.

Alias Requester

Re-exported from parrot.integrations.core.queued.models.Requester.

Alias SubmitOutcome

Re-exported from parrot.integrations.core.queued.models.SubmitOutcome.

Alias current_command_job

Re-exported from parrot.integrations.core.queued.context.current_command_job.

Alias parse_kwargs

Re-exported from parrot.integrations.utils.parse_kwargs.

Alias parse_response

Re-exported from parrot.integrations.parser.parse_response.

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