#6064 Feat: Support per-launch plan notification template
Pull request opened by
peterxcli
Tracking issue
Why are the changes needed?
What changes were proposed in this pull request?
Currently we can only define one mail template in
config, when some specific workflow state defined in launch plan is reached, then some mails with the mail template in config would sent to recipients.
This PR aims to allow user to define customize notification template for each launch plan.
Demo:
my_notifying_lp = LaunchPlan.create(
"my_notifying_lp",
my_workflow_definition,
default_inputs={"a": 4},
notifications=[
Email(
phases=[WorkflowExecutionPhase.SUCCEEDED],
recipients_email=["
admin@example.com"],
template="{{ workflow.id }} is ..."
)
],
)
How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
Docs link
flyteorg/flyte