Skip to content

Log errors happened in BackgroundWorker#perform#1624

Merged
st0012 merged 3 commits intomasterfrom
fix-#1618
Nov 22, 2021
Merged

Log errors happened in BackgroundWorker#perform#1624
st0012 merged 3 commits intomasterfrom
fix-#1618

Conversation

@st0012
Copy link
Copy Markdown
Contributor

@st0012 st0012 commented Nov 20, 2021

I assumed the block passed to BackgroundWorker#perform should already handle exceptions (e.g. Client#send_event). But #1618 showed it's not entirely true. So this PR adds exception logging to background worker and provide a safer approach to monkey patch its method.

Closes #1618

@st0012 st0012 added this to the 4.8.1 milestone Nov 20, 2021
@st0012 st0012 self-assigned this Nov 20, 2021
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 20, 2021

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.49%. Comparing base (1f96dce) to head (5515876).
⚠️ Report is 692 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1624      +/-   ##
==========================================
- Coverage   98.50%   98.49%   -0.02%     
==========================================
  Files         133      133              
  Lines        7382     7394      +12     
==========================================
+ Hits         7272     7283      +11     
- Misses        110      111       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@st0012 st0012 merged commit bf37772 into master Nov 22, 2021
@st0012 st0012 deleted the fix-#1618 branch November 22, 2021 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Background worker send fails if ActiveRecord defined but not correctly configured

3 participants