Add option to run supervisor as main process (#1270)

* Add option to run supervisor as main process

* use new option in test script
This commit is contained in:
Sascha Ißbrücker
2026-01-05 18:41:50 +01:00
committed by GitHub
parent 1b90db70c0
commit 184e4baa84
6 changed files with 62 additions and 7 deletions

View File

@@ -48,6 +48,18 @@ Disables background tasks, such as creating snapshots for bookmarks on the [the
Enabling this flag will prevent the background task processor from starting up, and prevents scheduling tasks.
This might be useful if you are experiencing performance issues or other problematic behaviour due to background task processing.
### `LD_SUPERVISOR_MANAGED` (Experimental)
Values: `True`, `False` | Default = `False`
Changes how processes are managed within the container.
When enabled, supervisor manages both the background task processor and the web server (uwsgi).
This enables background task logs to appear in the container output (visible via `docker logs`).
At the moment, supervisor will automatically restart crashed processes and the `LD_DISABLE_BACKGROUND_TASKS` setting is ignored.
When disabled (default), the background task processor runs as a daemon and uwsgi runs as the main process.
Background task logs are written to a file (`background_tasks.log`) instead of the container output.
### `LD_DISABLE_URL_VALIDATION`
Values: `True`, `False` | Default = `False`