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(batch-export-backfills): Cancel ongoing backfills on schedule delete #18136

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

tomasfarias
Copy link
Contributor

@tomasfarias tomasfarias commented Oct 23, 2023

Problem

When users delete a BatchExport we also delete the underlying Temporal Schedule. However, we do not cancel any running backfill Workflows that may be trying to backfill the Schedule we just deleted. This leaves the Workflows hanging around waiting forever for a Schedule that doesn't exist 💔

Changes

  • When destroying a BatchExport, also cancel any running BatchExportBackfills.
  • My local ruff did some import statement on save.

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

How did you test this code?

Added a unit test.

@tomasfarias tomasfarias marked this pull request as ready for review October 23, 2023 18:49
@tomasfarias tomasfarias requested a review from a team October 23, 2023 19:45
@tomasfarias tomasfarias force-pushed the fix/delete-backfills-on-batch-export-delete branch from cac546d to 1a9adb4 Compare October 27, 2023 14:24
@tomasfarias tomasfarias merged commit f54a544 into master Oct 27, 2023
71 checks passed
@tomasfarias tomasfarias deleted the fix/delete-backfills-on-batch-export-delete branch October 27, 2023 14:50
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