mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[PR #85] [CLOSED] fix(daemon): shut down cleanly in docker #105
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#105
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/open-webui/oikb/pull/85
Author: @hexsm
Created: 7/16/2026
Status: ❌ Closed
Base:
main← Head:feature/daemon-graceful-shutdown📝 Commits (2)
91fc930fix(daemon): preserve uvicorn signal handling533d6c1fix(daemon): stop syncs cooperatively on shutdown📊 Changes
2 files changed (+75 additions, -10 deletions)
View changed files
📝
src/oikb/daemon.py(+47 -9)📝
src/oikb/sync.py(+28 -1)📄 Description
Summary
Fixes daemon shutdown so Docker restarts/stops do not wait for the 10s kill timeout.
The daemon now leaves SIGTERM/SIGINT handling to Uvicorn in server mode, stops the scheduler through FastAPI shutdown, and passes a cooperative shutdown signal into active sync runs.
What Changed
--no-server.run_sync.Validation
compileall -f src/oikb/daemon.py src/oikb/sync.pygit diff --checkrun_sync(..., should_stop=...)cancellation smoke test🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.