mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-15 18:12:14 -05:00
[PR #7012] Add single-job worker entrypoint for scheduled tasks #24762
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/7012
Author: @0x484558
Created: 3/24/2026
Status: 🔄 Open
Base:
main← Head:feat/cron-jobs📝 Commits (1)
0095657add single-job worker entrypoint for scheduled tasks📊 Changes
3 files changed (+196 additions, -31 deletions)
View changed files
📝
src/db/mod.rs(+26 -14)➕
src/jobs.rs(+86 -0)📝
src/main.rs(+84 -17)📄 Description
Add an entrypoint for running individual background job at a time, so that background tasks can be executed on platforms that limit idle-time behavior (like Google Cloud Run and Cloud Scheduler).
The in-process idle loop can already be disabled by setting
JOB_POLL_INTERVAL_MS=0but this change makes jobs usable through external triggers.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.