-
Notifications
You must be signed in to change notification settings - Fork 510
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
Make sure checkins from crons work and keep working #3155
Make sure checkins from crons work and keep working #3155
Conversation
…irker/fix-crons-checkin-on-success' of github.com:getsentry/sentry-python into antonpirker/fix-crons-checkin-on-success
1a2e690
to
7bf044c
Compare
…:getsentry/sentry-python into antonpirker/fix-crons-checkin-on-success
@@ -26,9 +26,19 @@ def inner(signal, f): | |||
|
|||
@pytest.fixture | |||
def init_celery(sentry_init, request): | |||
def inner(propagate_traces=True, backend="always_eager", **kwargs): | |||
def inner( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated this init_celery
to make sure we can also set monitor_beat_tasks
here.
We have now the old The new one is way easier, and I think the old one is not needed anymore because advancements in Celery. So I think we can move to the new simpler fixture to be used everywhere. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. In the longer term we should look into moving the old tests to the new setup too.
Co-authored-by: Ivana Kellyerova <[email protected]>
Closing in favor of #3176 |
After refactoring the Celery Beat integration there was a regression, where the
ok
/error
check ins for crons where not sent.We reverted the refactoring here: #3144
This PR:
https://github.com/getsentry/sentry-python/pull/3155/files#diff-a05979007fa0398cc22f7b4910ccd3fde27fdea262a6137d1abdc676c633fcdcR75
https://github.com/getsentry/sentry-python/pull/3155/files#diff-6080c59a09cd8a2064cb87c5e2512c0589dda02f0ad2f46c94f774b0e645676fR56
After we have merged this we can revert the revert linked above.
Fixes #3145