• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 16560585324 / 2
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1475-clean-up-refactor-subsequences
DEFAULT BRANCH: master
Ran 28 Jul 2025 05:48AM UTC
Files 660
Run time 19s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jul 2025 05:08AM UTC coverage: 81.156% (+2.3%) from 78.845%
16560585324.2

push

github

web-flow
feat(attachments): Add Celery task to process users exceeding storage limit DEV-239 (#5909)

### 📣 Summary
Adds a new celery task that identifies users who have exceeded their
storage limits for a configurable number of days and dispatches a
cleanup task for each. This prepares the foundation for automated
enforcement of storage quotas via attachment deletion.


### 📖 Description
This PR introduces a Celery task
(`schedule_auto_attachment_cleanup_for_users`) that:

- Runs periodically via Celery Beat (every 30 mins, currently commented
out in `CELERY_BEAT_SCHEDULE`)
- Filters users from the `ExceededLimitCounter` model who have exceeded
their storage quota for more than
`LIMIT_ATTACHMENT_REMOVAL_GRACE_PERIOD` days (default: 90)
- For each qualifying user, dispatches a cleanup task
(`auto_delete_excess_attachments(user_id)`), currently a placeholder.

Additional Constance settings added:

- `AUTO_DELETE_ATTACHMENTS`: Global toggle for enabling/disabling the
auto deletion (default: False)
- `LIMIT_ATTACHMENT_REMOVAL_GRACE_PERIOD`: Grace period before
triggering cleanup for over-quota users

6429 of 10119 branches covered (63.53%)

24226 of 29851 relevant lines covered (81.16%)

0.81 hits per line

Source Files on job 16560585324.2
  • Tree
  • List 660
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 16560585324
  • 205fdf1c on github
  • Prev Job for on main (#16505623464.1)
  • Next Job for on main (#16575580117.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc