Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ignored properties (like payload) on the SlackExecution task #191

Open
anna-geller opened this issue Jan 10, 2025 · 0 comments
Open
Assignees
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working

Comments

@anna-geller
Copy link
Member

Describe the issue

Try running this flow in response to a failed flow -- there are a bunch of properties which are entirely ignored incl:

  • payload
  • channel - the channel of the webhook url is taken instead
  • username - the name of the Slack app is used instead
  • iconUrl - the icon of the Slack app is used instead

We should either fix or remove any SlackExecution properties that are currently ignored.

id: sla_miss_alert
namespace: alerting

tasks:
  - id: send_alert
    type: io.kestra.plugin.notifications.slack.SlackExecution
    url: xxxxx
    executionId: "{{trigger.executionId}}"
    iconUrl: "https://avatars.githubusercontent.com/u/59033362?s=48"
    username: "SLA Miss Alert"
    channel: "#random"
    payload: |
      {
        "text": "SLA breached for flow {{trigger.namespace}}.{{trigger.flowId}} with ID {{trigger.executionId}}"
      } 

triggers:
  - id: alert_on_failure
    type: io.kestra.plugin.core.trigger.Flow
    states:
      - FAILED
      - WARNING
      - CANCELLED

Environment

  • Kestra Version: develop
@anna-geller anna-geller added bug Something isn't working area/plugin Plugin-related issue or feature request labels Jan 10, 2025
@kestrabot kestrabot bot added this to Issues Jan 10, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Issues Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants