schedr._model.ids¶
DAG IDs and task IDs, validated with the same rules as schedr-model (ids.rs).
- schedr._model.ids.MAX_ID_LEN = 250¶
The longest allowed identifier, in bytes (UTF-8).
- exception schedr._model.ids.IdError¶
Bases:
ValueErrorAn identifier that isn’t valid; the message says why.
- schedr._model.ids.validate_dag_id(value)¶
Validates a DAG ID.
- Parameters:
value (str) – A native DAG’s ID, or a standalone job’s reference (
etl-repo:team_a/schedr.toml#report_daily).- Returns:
The same string, so the call can be used inline.
- Raises:
IdError – If it is empty, too long, contains a character that isn’t allowed, or is
.or..(a URL couldn’t name it).- Return type:
str
- schedr._model.ids.validate_task_id(value)¶
Validates a task ID (
taskorgroup.task).- Parameters:
value (str) – The task ID.
- Returns:
The same string, so the call can be used inline.
- Raises:
IdError – If it is empty, too long, contains a character that isn’t allowed, or has an empty part around a
..- Return type:
str