mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-31 19:45:15 +02:00
19 lines
490 B
Python
19 lines
490 B
Python
|
|
"""``AutomationStatus`` — lifecycle of a stored automation definition."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from enum import StrEnum
|
||
|
|
|
||
|
|
|
||
|
|
class AutomationStatus(StrEnum):
|
||
|
|
"""Status of an automation in the registry.
|
||
|
|
|
||
|
|
``active`` — eligible to fire from its triggers.
|
||
|
|
``paused`` — definition retained, triggers do not fire.
|
||
|
|
``archived`` — kept for run history only; no edits, no fires.
|
||
|
|
"""
|
||
|
|
|
||
|
|
ACTIVE = "active"
|
||
|
|
PAUSED = "paused"
|
||
|
|
ARCHIVED = "archived"
|