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