ancient-wolf-19325
06/17/2024, 7:56 PMworkflow_notifications:
enabled: true
config:
notifications:
type: slack
slack:
url: <slack-webhook-url>
- Replace <slack-webhook-url> with your actual Slack Webhook URL.
2. Specify Notifications in Launch Plan:
- Use the Flyte SDK to define a launch plan with Slack notifications:
from flytekit import Slack, WorkflowExecutionPhase, LaunchPlan, workflow, task
@task
def my_task():
...
@workflow
def my_workflow():
my_task()
my_launch_plan = LaunchPlan.get_or_create(
workflow=my_workflow,
notifications=[
Slack(
phases=[WorkflowExecutionPhase.SUCCEEDED, WorkflowExecutionPhase.FAILED],
recipients_email=["my-channel@slack.com"],
)
],
)
- Replace my-channel@slack.com with your Slack channel or user email.
For detailed steps and troubleshooting, refer to this discussion and this example.
Would you like more detail on any specific part?
Sources:
- Discussion on Slack Notifications
- ChatGPT Agent Example
Slack Link
https://flyte-org.slack.com/archives/CP2HDHKE1/p1718654153.295789 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.