Skip to content

Conversation

tw4l
Copy link
Member

@tw4l tw4l commented Oct 7, 2025

Fixes #2872

This PR ensures that all k8s objects related to an org are deleted immediately after an org is deleted, so that e.g. crawl config cron jobs, paused crawl jobs, and delayed replica deletion jobs are not leftover.

Testing

Follow instructions in issue to create an org that will have replica deletion cron job scheduled and a pause crawl job, then delete org and validate that resources have been successfully deleted.

@tw4l tw4l force-pushed the issue-2872-delete-k8s-objects-on-org-delete branch 2 times, most recently from 1c4aba4 to c809e01 Compare October 8, 2025 17:21
@tw4l tw4l changed the title WIP: Delete k8s objects on org deletion Delete k8s objects on org deletion Oct 8, 2025
@tw4l tw4l marked this pull request as ready for review October 8, 2025 22:06
@tw4l tw4l force-pushed the issue-2872-delete-k8s-objects-on-org-delete branch from ad4ba2d to 8bff390 Compare October 8, 2025 22:06
@tw4l tw4l requested a review from ikreymer October 8, 2025 22:07
Copy link
Member

@ikreymer ikreymer left a comment

Choose a reason for hiding this comment

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

Looks good! Tested deleting an org with a crawl running, profile browser running and delete replica cron schedule and they were all cleaned up correctly!
Tested locally and on dev.

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.

[Bug]: Ensure all crawl objects + background tasks are deleted when an org is deleted

2 participants