mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5246] [CLOSED] refactor(web): centralize background job cadences #5831
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5831
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/MHSanaei/3x-ui/pull/5246
Author: @n0ctal
Created: 6/12/2026
Status: ❌ Closed
Base:
main← Head:claude-pr-0009-job-cadences📝 Commits (1)
6995e5drefactor(web): centralize background job cadences📊 Changes
2 files changed (+63 additions, -10 deletions)
View changed files
➕
internal/web/cadence_test.go(+34 -0)📝
internal/web/web.go(+29 -10)📄 Description
Summary
This PR centralizes the hardcoded cron/job cadence strings into named constants.
Why
Background job cadences are currently spread across the web server startup code. Centralizing them makes tuning and review easier and reduces the chance of accidental drift.
This PR is intentionally a no-behavior-change refactor.
Scope
Validation
Risk
Low. This is a maintainability refactor only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.