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

fix: Do not retry on TemporalScheduleNotFoundError #23088

Merged

Conversation

tomasfarias
Copy link
Contributor

Problem

We shouldn't backfill a schedule that no longer exists. We'll raise an TemporalScheduleNotFoundError exception is that the case. However, we were not catching this error in the first get_schedule_frequency activity, which can cause it to fail and retry indefinitely.

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

We were already not retrying in the main backfill activity. However,
we were not catching this error in the first `get_schedule_frequency`
activity, which can fail indefinitely.
@tomasfarias tomasfarias enabled auto-merge (squash) June 19, 2024 13:53
@tomasfarias tomasfarias merged commit 38edb43 into master Jun 19, 2024
85 checks passed
@tomasfarias tomasfarias deleted the fix/error-if-schedule-not-found-while-getting-frequency branch June 19, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants