dagu icon indicating copy to clipboard operation
dagu copied to clipboard

Add Slack Integration for Workflow Notification and Executor

Open yohamta opened this issue 1 year ago • 0 comments

This will allow users to receive real-time updates on the status of their DAGs directly in their preferred Slack channels.

Here is the suggested configuration for enabling Slack notification within a DAG:

notification:
  - provider: Slack
    token: $SLACK_AUTH_TOKEN
    channel: $SLACK_CHANNEL
    on:
      failure: true
      success: true

In addition to notifications, we can also introduce slack executor:

steps:
  - name: s1
    executor:
      type: slack
      config:
        token: $SLACK_AUTH_TOKEN
        channel: $SLACK_CHANNEL
    script: "hello"

By implementing this feature, we can improve the user experience by providing real-time updates on DAG execution and streamline communication within teams. It will also open up the possibility for further integrations with other messaging platforms in the future.

yohamta avatar Apr 24 '23 06:04 yohamta