cmem_client.models.scheduler¤
Scheduler models
A scheduler is the DataIntegration task which starts a workflow on a fixed interval.
The schedulers of all projects are the items of client.schedulers, keyed by
{project_id}:{scheduler_id}.
Classes:
- Scheduler – A workflow scheduler task.
- SchedulerItemLink – A link associated with a scheduler.
- SchedulerParameters – Parameters of a scheduler task.
- SchedulerSearchResults – Wrapper for the task search API response containing schedulers.
Scheduler¤
Bases: Model, ReadRepositoryItem
A workflow scheduler task.
Attributes:
- id (
str) – ID of the scheduler, unique within its project. - project_id (
str) – ID of the project holding the scheduler. - label (
str) – Human readable name of the scheduler. - parameters (
SchedulerParameters) – Interval, enabled state and scheduled workflow. - item_links (
list[SchedulerItemLink]) – Links into the user interface for this scheduler.
Functions:
- get_id – Get the scheduler ID in the form ‘project_id:scheduler_id’.
get_id¤
Get the scheduler ID in the form ‘project_id:scheduler_id’.
id¤
item_links¤
label¤
model_config¤
parameters¤
project_id¤
SchedulerItemLink¤
Bases: Model
A link associated with a scheduler.
Attributes:
- path (
str) – Path the link points at, relative to the DataIntegration user interface. - label (
str | None) – Text shown for the link.
label¤
model_config¤
path¤
SchedulerParameters¤
Bases: Model
Parameters of a scheduler task.
Attributes:
- interval (
str) – How often the workflow is started, as an ISO 8601 duration such asPT1H. - enabled (
bool) – Whether the scheduler currently runs. A disabled scheduler keeps its interval but does not start anything. - task (
str) – ID of the workflow the scheduler starts.
Functions:
- extract_task_id – Extract task ID from either a plain string or a dict with a ‘value’ key.
- parse_enabled – Convert API string ‘true’/’false’ to bool.
- serialize_enabled – Serialize bool back to API string format.
enabled¤
extract_task_id¤
Extract task ID from either a plain string or a dict with a ‘value’ key.
interval¤
model_config¤
parse_enabled¤
Convert API string ‘true’/’false’ to bool.
serialize_enabled¤
Serialize bool back to API string format.
task¤
SchedulerSearchResults¤
Bases: Model
Wrapper for the task search API response containing schedulers.
Attributes: