-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(debug-files): Buffer updates to reprocessing revision project opt…
…ion (#29041)
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from sentry.models import ProjectOption | ||
from sentry.signals import buffer_incr_complete | ||
|
||
|
||
@buffer_incr_complete.connect( | ||
sender=ProjectOption, dispatch_uid="bump_reprocessing_revision_receiver", weak=False | ||
) | ||
def bump_reprocessing_revision_receiver(filters, **_): | ||
from sentry.reprocessing import REPROCESSING_OPTION, bump_reprocessing_revision | ||
|
||
if filters.get("key") == REPROCESSING_OPTION: | ||
bump_reprocessing_revision(filters["project"], use_buffer=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters