mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3457] [Issue]: env-watcher does not warn that SPRITE_GENERATION_TIMEOUT_MS requires a restart #1869
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1869
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?
Originally created by @kolacheee on GitHub (Jul 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3457
Originally assigned to: @SpicyMarinara, @kolacheee on GitHub.
Summary
SPRITE_GENERATION_TIMEOUT_MSis missing fromRESTART_REQUIRED_KEYSinpackages/server/src/config/env-watcher.ts, so changing it in a live.envproduces no[env-watcher]restart warning — even though the value is bound at module load and does not take effect until the server restarts.Expected behavior
Editing
SPRITE_GENERATION_TIMEOUT_MSin the runtime.envwhile the server is running should log the same warning as its siblings (IMAGE_GEN_TIMEOUT_MS,VIDEO_GEN_TIMEOUT_MS,COMFYUI_GEN_TIMEOUT, the poll intervals):Actual behavior
Only the normal
[env-watcher] Updated: SPRITE_GENERATION_TIMEOUT_MS=...line is logged. Sprite generation keeps using the boot-time timeout with no hint that the new value is inert: the value is read once into a module-level constant inpackages/server/src/routes/sprites.routes.ts(const SPRITE_GENERATION_TIMEOUT_MS = Number(process.env.SPRITE_GENERATION_TIMEOUT_MS ?? ...)), so the propagatedprocess.envupdate is never re-read.docs/CONFIGURATION.mdcurrently documents this gap as an explicit exception ("It still needs a restart, but the log does not warn you"), which is a workaround for the missing key rather than intended behavior.Steps to reproduce
.envthat setsSPRITE_GENERATION_TIMEOUT_MS..envand save.Updated:line appears, but no restart-required warning, and sprite generation jobs still use the old timeout.Environment
staging@2766a1790Logs, screenshots, or video
Key list as of
staging(packages/server/src/config/env-watcher.ts): containsIMAGE_GEN_TIMEOUT_MS,VIDEO_GEN_TIMEOUT_MS,VIDEO_GEN_MAX_RESPONSE_BYTES, the four*_VIDEO_POLL_INTERVAL_MSkeys, andCOMFYUI_GEN_TIMEOUT— but notSPRITE_GENERATION_TIMEOUT_MS.Additional context
Found while auditing the
RESTART_REQUIRED_KEYSlist against the restart behavior documented indocs/CONFIGURATION.mdduring the docs overhaul. Fix is a one-line addition to the key list plus dropping the now-obsolete exception sentence from the doc. I'm taking this — PR incoming (kolacheee).Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 10, 2026):
Fixed by #3458 and merged into staging. now participates in restart-required env-watcher warnings, and the obsolete documentation exception is removed.
@SpicyMarinara commented on GitHub (Jul 10, 2026):
Correction: fixed by #3458 and merged into staging. SPRITE_GENERATION_TIMEOUT_MS now participates in restart-required env-watcher warnings, and the obsolete documentation exception is removed.