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

ref(rules): Fix task name for delayed rule processing #70831

Merged
merged 1 commit into from
May 14, 2024

Conversation

ceorourke
Copy link
Member

The task for processing delayed rules wasn't imported into CELERY_IMPORTS and the name was incorrect - this fixes both and adds a log message if the buffer hook registry isn't working as expected.

@ceorourke ceorourke requested a review from a team May 13, 2024 23:58
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 13, 2024
Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 80.02%. Comparing base (7c08bcb) to head (a1aca57).
Report is 9 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #70831   +/-   ##
=======================================
  Coverage   80.01%   80.02%           
=======================================
  Files        6504     6505    +1     
  Lines      290769   290781   +12     
  Branches    50119    50119           
=======================================
+ Hits       232666   232684   +18     
+ Misses      57666    57660    -6     
  Partials      437      437           
Files Coverage Δ
src/sentry/conf/server.py 89.42% <ø> (ø)
src/sentry/rules/processing/delayed_processing.py 93.21% <ø> (ø)
src/sentry/buffer/redis.py 91.74% <0.00%> (-0.31%) ⬇️

... and 16 files with indirect coverage changes

@@ -73,6 +73,7 @@ def callback(self, buffer_hook_event: BufferHookEvent, data: RedisBuffer) -> boo
try:
callback = self._registry[buffer_hook_event]
except KeyError:
logger.info("buffer_hook_event.missing", extra={"key_name": buffer_hook_event.value})
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: might be nice to make this an error log instead of an info log, and pass the exception.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 I'll change it in a separate PR, really wanna get this out to do testing

@ceorourke ceorourke merged commit c7c3256 into master May 14, 2024
49 of 50 checks passed
@ceorourke ceorourke deleted the ceorourke/fix-task-name branch May 14, 2024 16:29
ceorourke added a commit that referenced this pull request May 14, 2024
Follow up from
#70831 (comment) to
make this raise an exception rather than just log an error.
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2024
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.

3 participants