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

Slack notification not sent when error occurs #1829

Open
tanaka-yayoi opened this issue Mar 28, 2024 · 1 comment
Open

Slack notification not sent when error occurs #1829

tanaka-yayoi opened this issue Mar 28, 2024 · 1 comment

Comments

@tanaka-yayoi
Copy link

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)

@toru-takahashi
Copy link
Contributor

Hello,

Could you provide an error logs? We haven't tested slack operator. so, that would be nice if you can check whether it works with native operators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants