Skip to content

fix aurora clean task#5897

Merged
domdinicola merged 1 commit intodevelopfrom
feature/fix-aurora-clean-task
Apr 15, 2026
Merged

fix aurora clean task#5897
domdinicola merged 1 commit intodevelopfrom
feature/fix-aurora-clean-task

Conversation

@domdinicola
Copy link
Copy Markdown
Contributor

@domdinicola domdinicola commented Apr 10, 2026

the task kills the pod because of out of memory
AB#310005

@domdinicola domdinicola force-pushed the feature/fix-aurora-clean-task branch from 94886b4 to 1742acf Compare April 10, 2026 14:14
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.26%. Comparing base (abf642f) to head (bebe52d).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5897      +/-   ##
===========================================
+ Coverage    92.25%   92.26%   +0.01%     
===========================================
  Files          494      494              
  Lines        34349    34361      +12     
  Branches      3602     3603       +1     
===========================================
+ Hits         31688    31703      +15     
+ Misses        1911     1908       -3     
  Partials       750      750              
Flag Coverage Δ
e2e 52.63% <11.11%> (-0.02%) ⬇️
unit 91.96% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Jeeziorny
Copy link
Copy Markdown
Contributor

Do we have task for that on AB?

Comment thread src/hope/contrib/aurora/celery_tasks.py Outdated
@sentry_tags
def clean_old_record_files_task() -> None:
def clean_old_record_files_task(batch_size: int = 100) -> None:
"""Task to clean (sets to null) Record's files field."""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it setting to null or removing records?

Comment thread src/hope/contrib/aurora/celery_tasks.py Outdated
@sentry_tags
def clean_old_record_files_task() -> None:
def clean_old_record_files_task(batch_size: int = 100) -> None:
"""Task to clean (sets to null) Record's files field."""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Docstring is inconsistent with the code (deletes, not "sets to null"). Update to: "Task to delete old imported Records."

@domdinicola domdinicola force-pushed the feature/fix-aurora-clean-task branch 2 times, most recently from 12bc1b4 to bb85190 Compare April 13, 2026 10:55
@domdinicola domdinicola force-pushed the feature/fix-aurora-clean-task branch from bb85190 to 76a9d4f Compare April 13, 2026 11:11
@domdinicola domdinicola force-pushed the feature/fix-aurora-clean-task branch from 76a9d4f to bebe52d Compare April 14, 2026 14:03
@domdinicola domdinicola merged commit cc24f51 into develop Apr 15, 2026
9 of 10 checks passed
@domdinicola domdinicola deleted the feature/fix-aurora-clean-task branch April 15, 2026 07:34
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.

5 participants