flytekit.Email#

class flytekit.Email(phases, recipients_email)[source]#

This notification should be used when sending regular emails to people.

from flytekit.models.core.execution import WorkflowExecutionPhase

Email(phases=[WorkflowExecutionPhase.SUCCEEDED], recipients_email=["my-team@email.com"])

Methods

Parameters
classmethod from_flyte_idl(p)#
Parameters

p (flyteidl.admin.common_pb2.Notification) –

Return type

Notification

serialize_to_string()#
Return type

str

short_string()#
Return type

Text

to_flyte_idl()#
Return type

flyteidl.admin.common_pb2.Notification

verbose_string()#
Return type

Text

Attributes

VALID_PHASES = {4, 6, 7, 8}
email

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