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

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

Build:
Build:
LAST BUILD BRANCH: dev-1475-clean-up-refactor-subsequences
DEFAULT BRANCH: master
Ran 28 Jul 2025 05:45AM 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: 78.828% (-0.02%) from 78.845%
16560585324.1

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

6219 of 10110 branches covered (61.51%)

23531 of 29851 relevant lines covered (78.83%)

0.79 hits per line

Source Files on job 16560585324.1
  • Tree
  • List 660
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
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