Repository navigation
Fix ITN cleanup OOM on django_cron - #5338
Merged
Merged
Conversation
The cascades on ITNArticle make Django select every column of the rows it is about to delete. With 3072-dim embeddings and full article text that pushed django_cron past its memory quota every night since Nov 22. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#5334 didn't stop the nightly R15 on
django_cron. The Nov 22–24 runs died one step earlier: memory climbs right after "Synced N ITN articles", before "Running ITN articles embeddings generation" is logged.clear_old_itn_news:ITNArticlehas a CASCADE (PostArticle) and a SET_NULL (KeyFactorNews), so.delete()first selects every column of the rows it removes, including article text and 3072-dim embeddings. It now selects onlyid. Cascades are unchanged🤖 Generated with Claude Code