Skip to content

Disk watchdog should not run in uvicorn workers.#106

Merged
pSpitzner merged 3 commits intomainfrom
#99_watchdog
Jun 15, 2025
Merged

Disk watchdog should not run in uvicorn workers.#106
pSpitzner merged 3 commits intomainfrom
#99_watchdog

Conversation

@pSpitzner
Copy link
Owner

WIP fix for #99

Likely a consequence of #67
-> Each quart worker starts a watchdog.

Tried to only start a watchdog only in the first worker but thats dirty - but we should really launch the watchdog in a separate thread like we do with the redis workers.

@semohr
Copy link
Collaborator

semohr commented Jun 15, 2025

An additional small script that is run on startup sounds reasonable 👍

also moved db init into its own script that runs before uvicorn
@pSpitzner pSpitzner marked this pull request as ready for review June 15, 2025 17:39
@pSpitzner pSpitzner merged commit 1d10333 into main Jun 15, 2025
2 checks passed
@pSpitzner pSpitzner deleted the #99_watchdog branch June 15, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants