Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
Target branch: Please verify that the pull request targets the dev branch.
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Have you written and run sufficient tests to validate the changes?
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Changelog Entry
Description
If UVICORN_WORKERS aren't used, Open WebUI works as intended.
If UVICORN_WORKERS is set to a higher value than 1, Uvicorn will throw a warning, that the application must be passed as a string
Changed
Changed the application to be passed as a string
Additional Information
I also tested if Open WebUI still starts if no workers are passed (aka only 1 worker) and the application is passed as a string: yes Open WebUI still starts. So by changing this into a string will work for all cases (only 1 worker or multiple workers)
Tested on pip venv python3.11 + python 3.12
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/12883
**Author:** [@Classic298](https://github.com/Classic298)
**Created:** 4/15/2025
**Status:** ✅ Merged
**Merged:** 4/18/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `patch-1`
---
### 📝 Commits (1)
- [`36b2052`](https://github.com/open-webui/open-webui/commit/36b2052fb08be64d5fe8d01e60524a14910a8563) Update __init__.py
### 📊 Changes
**1 file changed** (+1 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/__init__.py` (+1 -1)
</details>
### 📄 Description
# Pull Request Checklist
### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request.
**Before submitting, make sure you've checked the following:**
- [X] **Target branch:** Please verify that the pull request targets the `dev` branch.
- [X] **Description:** Provide a concise description of the changes made in this pull request.
- [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [X] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources?
- [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
- [X] **Testing:** Have you written and run sufficient tests to validate the changes?
- [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
# Changelog Entry
### Description
- If UVICORN_WORKERS aren't used, Open WebUI works as intended.
- If UVICORN_WORKERS is set to a higher value than 1, Uvicorn will throw a warning, that the application must be passed as a string
### Changed
- Changed the application to be passed as a string
---
### Additional Information
- I also tested if Open WebUI still starts if **no workers are passed** (aka only 1 worker) and the application is passed as a string: yes Open WebUI still starts. So by changing this into a string will work for all cases (only 1 worker or multiple workers)
Tested on pip venv python3.11 + python 3.12
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12883
Author: @Classic298
Created: 4/15/2025
Status: ✅ Merged
Merged: 4/18/2025
Merged by: @tjbck
Base:
dev← Head:patch-1📝 Commits (1)
36b2052Update __init__.py📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/__init__.py(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Changed
Additional Information
Tested on pip venv python3.11 + python 3.12
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.