Skip to content

feat(contrib): add background_interval plugin#4660

Closed
jcpunk wants to merge 1 commit intolitestar-org:mainfrom
jcpunk:scheduled-task
Closed

feat(contrib): add background_interval plugin#4660
jcpunk wants to merge 1 commit intolitestar-org:mainfrom
jcpunk:scheduled-task

Conversation

@jcpunk
Copy link
Copy Markdown

@jcpunk jcpunk commented Apr 1, 2026

Description

  • Adds a plugin for setting up background scheduled functions

Closes

@jcpunk jcpunk requested review from a team as code owners April 1, 2026 19:06
@github-actions github-actions bot added area/contrib This PR involves changes to the contrib (Deprecated) size: small type/feat pr/external Triage Required 🏥 This requires triage labels Apr 1, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.43%. Comparing base (1d63bd0) to head (3b69a98).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4660      +/-   ##
==========================================
+ Coverage   67.32%   67.43%   +0.10%     
==========================================
  Files         292      293       +1     
  Lines       14933    14982      +49     
  Branches     1673     1675       +2     
==========================================
+ Hits        10054    10103      +49     
  Misses       4743     4743              
  Partials      136      136              

☔ 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.

@jcpunk
Copy link
Copy Markdown
Author

jcpunk commented Apr 1, 2026

My specific use case is for pruning data for GDPR. My application can set lifecycles for automatic expiration as well as manual cleanups.

This type of background task scheduling is something I thought might be of wider value.

@provinzkraut
Copy link
Copy Markdown
Member

Thank you for the contribution, but this is somewhat outside the scope of Litestar itself. If you want to publish this, I'd recommend you do it as an independent project.

@jcpunk jcpunk deleted the scheduled-task branch April 3, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/contrib This PR involves changes to the contrib (Deprecated) pr/external size: small Triage Required 🏥 This requires triage type/feat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants