Skip to main content

Module task_api

Module task_api 

Source
Expand description

A task’s REST requests through its agent (M4.11h, the user’s B2): the master runs them through the API’s own router as the task’s identity, on an allow-list of routes, so a task needs no URL or token and reaches nothing else.

Structs§

ApiJob
A call checked and ready to run, away from the core’s lock (a request may take a while).
TaskApiRequest
A request a task made, as the router gets it.
TaskApiResponse
What the router answered.

Enums§

ApiCallPlan
What to do with a task’s call: answered already (refused), or to run.

Constants§

NOTIFICATIONS
A task’s own notification: {"channel": ..., "text": ..., "data": ...}, answered 202 once queued.
TASK_ROUTES
The routes a task may call, by method and path (a query is allowed after it): the events (the user’s, 2026-11-08), whose code is the API’s own, and its own notifications (decision 421), which the master answers itself.

Traits§

TaskApi
The API, as the master calls it for tasks: the schedr binary gives it the REST router.

Functions§

allowed
Whether a task may call method on path (its query aside).