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

[dy] Add error stack trace to the message for pipeline run failure #4697

Conversation

dy46
Copy link
Contributor

@dy46 dy46 commented Mar 1, 2024

Description

Add error details to the message. I only add the latest error message if there are multiple errors because there could potentially be a lot of blocks that error.

How Has This Been Tested?

  • Tested with slack
    Screenshot 2024-03-01 at 3 26 02 PM

Checklist

  • The PR is tagged with proper labels (bug, enhancement, feature, documentation)
  • I have performed a self-review of my own code
  • I have added unit tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • If new documentation has been added, relative paths have been added to the appropriate section of docs/mint.json

cc: @wangxiaoyou1993

@dy46 dy46 added the enhancement Polish or UX improvements label Mar 1, 2024
@dy46 dy46 linked an issue Mar 1, 2024 that may be closed by this pull request
@@ -312,7 +320,14 @@ def schedule(self, block_runs: List[BlockRun] = None) -> None:
failed_block_runs = self.pipeline_run.failed_block_runs
error_msg = 'Failed blocks: '\
f'{", ".join([b.block_uuid for b in failed_block_runs])}.'

error = None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we reduce duplicate code?

@dy46 dy46 force-pushed the 4653-add-error-stack-trace-when-sending-out-failure-alert-notification branch from 425f1a2 to e94866c Compare March 5, 2024 18:51
@dy46 dy46 merged commit 74ee448 into master Mar 7, 2024
9 checks passed
@dy46 dy46 deleted the 4653-add-error-stack-trace-when-sending-out-failure-alert-notification branch March 7, 2024 19:57
@wangxiaoyou1993 wangxiaoyou1993 mentioned this pull request Mar 13, 2024
15 tasks
oonyoontong pushed a commit to bunker-tech/mage-ai that referenced this pull request May 2, 2024
…age-ai#4697)

* [dy] Initial commit

* [dy] Add error stacktrace to the pipeline run failure message

* [dy] Add error stacktrace to the pipeline run failure message

* [dy] Fix tests

* [dy] Consolidate

* [dy] Update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Polish or UX improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Error stack trace when sending out failure alert notification
2 participants