Skip to content

fix(taskworker) Update parameters for update_user_reports #92362

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

markstory
Copy link
Member

I'm trying to tighten our task + pickle support to also include direct calls to task functions. The update_user_report task had several parameters that cannot be JSON encoded. I've replaced the problematic parameters with JSON compatible ones, and updated logic accordingly.

While these signatures would normally be breaking changes, this task is only triggered from celerybeat and thus never gets any parameters.

I'm trying to tighten our task + pickle support to also include direct
calls to task functions. The update_user_report task had several
parameters that cannot be JSON encoded. I've replaced the problematic
parameters with JSON compatible ones, and updated logic accordingly.

While these signatures would normally be breaking changes, this task
*is only* triggered from celerybeat and thus never gets any parameters.
@markstory markstory requested review from a team May 27, 2025 21:34
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 27, 2025
Copy link

codecov bot commented May 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #92362      +/-   ##
==========================================
- Coverage   87.92%   87.92%   -0.01%     
==========================================
  Files       10209    10209              
  Lines      584831   584836       +5     
  Branches    22687    22687              
==========================================
- Hits       514194   514191       -3     
- Misses      70215    70223       +8     
  Partials      422      422              

@markstory markstory requested a review from a team May 28, 2025 19:08
@markstory markstory merged commit 0b3b367 into master May 29, 2025
62 checks passed
@markstory markstory deleted the fix-update-userreports-params branch May 29, 2025 14:22
andrewshie-sentry pushed a commit that referenced this pull request Jun 2, 2025
I'm trying to tighten our task + pickle support to also include direct
calls to task functions. The update_user_report task had several
parameters that cannot be JSON encoded. I've replaced the problematic
parameters with JSON compatible ones, and updated logic accordingly.

While these signatures would normally be breaking changes, this task *is
only* triggered from celerybeat and thus never gets any parameters.
@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants