flytekit.Slack#
- class flytekit.Slack(phases, recipients_email)[source]#
This notification should be used when sending emails to the Slack.
from flytekit.models.core.execution import WorkflowExecutionPhase Slack(phases=[WorkflowExecutionPhase.SUCCEEDED], recipients_email=["my-team@email.com"])
Methods
- classmethod from_flyte_idl(p)[source]#
- Parameters:
p (flyteidl.admin.common_pb2.Notification)
- Return type:
Notification
Attributes
- VALID_PHASES = {4, 6, 7, 8}
EmailNotification
- Type:
rtype
- is_empty
- pager_duty
PagerDutyNotification
- Type:
rtype
- phases
A list of phases to which users can associate the notifications. :rtype: list[int]
- slack
SlackNotification
- Type:
rtype