-
Notifications
You must be signed in to change notification settings - Fork 1
/
enums.py
56 lines (39 loc) · 1.16 KB
/
enums.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from __future__ import annotations
from enum import Enum, IntEnum
class PersistOutputsOptions(str, Enum):
""""""
DISABLED = 'disabled'
FOLLOW_CONFIG = 'config'
ENABLED = 'enabled'
class RestoreOutputsOptions(str, Enum):
""""""
DISABLED = 'disabled'
FOLLOW_CONFIG = 'config'
AUTO_ENABLE_IGNORE_PARAMS = 'auto_ignore_params'
FORCE_ENABLE_IGNORE_PARAMS = 'force_ignore_params'
class ConfigPersistOutputsOptions(str, Enum):
""""""
DISABLED = 'disabled'
ENABLE_FLOW_OUTPUTS = 'flow'
ENABLE_FLOW_AND_TASK_OUTPUTS = 'all'
class ConfigRestoreOutputsOptions(str, Enum):
""""""
DISABLED = 'disabled'
AUTO_ENABLE_IGNORE_PARAMS = 'auto_ignore_params'
class EngineChoice(str, Enum):
""""""
LOCAL = 'local'
PREFECT = 'prefect'
class RunState(IntEnum):
""""""
INITIALIZED = 1
RUNNING = 2
FINISHED = 3
# TODO: Add 'apply' state
# TODO: Add 'failed' state and error management
# TODO: Consider the need for a 'waiting' state
class RunStateLogMessages(str, Enum):
""""""
INITIALIZED = 'Initialized "{}"'
RUNNING = 'Started running "{}"...'
FINISHED = 'Finished running "{}"!'