[PR #7012] Add single-job worker entrypoint for scheduled tasks #16739

Open
opened 2026-04-23 08:04:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/7012
Author: @0x484558
Created: 3/24/2026
Status: 🔄 Open

Base: mainHead: feat/cron-jobs


📝 Commits (1)

  • 0095657 add 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=0 but 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.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/7012 **Author:** [@0x484558](https://github.com/0x484558) **Created:** 3/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/cron-jobs` --- ### 📝 Commits (1) - [`0095657`](https://github.com/dani-garcia/vaultwarden/commit/009565735c2088ae7fad1c073045089e8150101c) add single-job worker entrypoint for scheduled tasks ### 📊 Changes **3 files changed** (+196 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `src/db/mod.rs` (+26 -14) ➕ `src/jobs.rs` (+86 -0) 📝 `src/main.rs` (+84 -17) </details> ### 📄 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=0` but this change makes jobs usable through external triggers. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 08:04:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#16739