Skip to content

Slack notification not sent when error occurs #1829

Description

@tanaka-yayoi

If anyone has insights or experience with this issue, your assistance would be greatly appreciated.

Description
task.dig

!include : notice/error_notifier.dig

+task:
  td_run>: <query_id>

notice/error_notifier.dig

_export:
  plugin:
    repositories:
      - https://jitpack.io
    dependencies:
      - com.github.szyn:digdag-slack:0.1.4
  webhook_url: <slack webhook url>

_error:
  slack>: notice/danger-template.yml

The query executed with td_run>: is publishing results to Tableau Server using the "Export Results" feature. Errors in the task are caught by error_notifier.dig and a notification is sent to Slack using the plugin.

Due to an overlap with Tableau Server maintenance, an error occurred while publishing, but no error notification was sent to Slack. What's puzzling is that the error task is reported as successful in the Digdag Server logs.

Reproduction Steps
Reproduction has not been successful.

Tried the following, all of which were successfully notified:

  • Causing an error using the fail>: operator
  • Executing a deliberately failing query
  • Specifying a non-existent project as the "Export Results" destination to induce failure

Expected Behavior
No cases where error notifications are not sent, or clarification of specific conditions under which error notifications are not sent.

Environment
Digdag version: 0.10.4
Plugin version: 0.1.4 (digdag-slack)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions