File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
class NotificationEvent (str , Enum ):
15
15
"""
16
- Enum for events triggering notifications. Implementers can extend
16
+ Enum for events triggering notifications. Implementers can extend
17
17
this enum to include additional notification events as needed.
18
18
19
19
Attributes:
20
20
SUCCESS (str): Sent when a job completes successfully.
21
21
FAILURE (str): Sent on job failure.
22
22
STOPPED (str): Sent when a job is manually stopped.
23
23
"""
24
+
24
25
SUCCESS = "Success"
25
26
FAILURE = "Failure"
26
27
STOPPED = "Stopped"
27
28
28
29
29
30
class Notification (BaseModel ):
30
31
"""Represents a notification.
31
-
32
+
32
33
Attributes:
33
34
send_to (List[str]): A list of symbols (e.g., email addresses) to which notifications should be sent.
34
35
events (List[NotificationEvent]): A list of events that should trigger the sending of notifications.
35
36
include_output (bool): A flag indicating whether a output should be included in the notification. Default is False.
36
37
"""
38
+
37
39
send_to : List [str ]
38
40
events : List [NotificationEvent ]
39
41
include_output : bool
@@ -44,6 +46,7 @@ class RuntimeEnvironment(BaseModel):
44
46
execution will happen. For example, conda
45
47
environment.
46
48
"""
49
+
47
50
name : str
48
51
label : str
49
52
description : str
You can’t perform that action at this time.
0 commit comments