Juan Calderon-Perez
51246bcb31
perf(backend): offload blocking calls in async paths to threads ( #26381 )
...
Audit of asyncio.sleep vs time.sleep and event-loop-blocking calls:
- utils/plugin.py: run pip `install_frontmatter_requirements`
(subprocess.check_call) via asyncio.to_thread in load_tool_module_by_id,
load_function_module_by_id, and install_tool_and_function_dependencies.
- retrieval/utils.py: move the synchronous SSRF-guarded requests probe and
loader.load() in get_content_from_url into a sync helper run via
asyncio.to_thread.
- routers/audio.py: write uploaded audio to disk off the event loop in
transcription().
- routers/pipelines.py: write uploaded pipeline file off the event loop in
upload_pipeline().
The existing time.sleep call sites are all in genuinely synchronous
functions (sync requests/DB drivers/daemon threads) with async
counterparts that already use asyncio.sleep, so no time.sleep -> asyncio.sleep
changes were needed.
Claude-Session: https://claude.ai/code/session_01LXR5bYfsfSS42RGHQZu2Ta
Co-authored-by: Claude <noreply@anthropic.com >
2026-06-29 10:42:26 -05:00
Timothy Jaeryang Baek
e124c2656a
refac
2026-06-25 14:37:05 +01:00
Timothy Jaeryang Baek
91762ed807
refac
2026-06-23 00:25:21 +02:00
Timothy Jaeryang Baek
6d0295588e
refac: modernize type annotations (PEP 604 / PEP 585)
2026-05-12 17:10:15 +09:00
Timothy Jaeryang Baek
7bcc0e2e5c
chore: format
2026-05-09 15:25:27 +09:00
Timothy Jaeryang Baek
ae43562b86
refac
2026-05-09 05:24:50 +09:00
Timothy Jaeryang Baek
8ff7ff459b
chore: format
2026-04-24 18:48:21 +09:00
Timothy Jaeryang Baek
3d1e355df7
refac
2026-04-24 18:20:10 +09:00
Timothy Jaeryang Baek
27169124f2
refac: async db
2026-04-12 14:22:11 -05:00
Timothy Jaeryang Baek
ade617efa8
refac
2026-03-24 04:49:48 -05:00
Timothy Jaeryang Baek
de3317e26b
refac
2026-03-17 17:58:01 -05:00
Timothy Jaeryang Baek
631e30e22d
refac
2026-02-21 15:35:34 -06:00
Timothy Jaeryang Baek
8bfab327ec
refac
2026-02-19 14:14:36 -06:00
Timothy Jaeryang Baek
f376d4f378
chore: format
2026-02-11 16:24:11 -06:00
Timothy Jaeryang Baek
474427c67e
enh: dynamic select options valve
2026-01-22 03:55:07 +04:00
Timothy Jaeryang Baek
bd07ef87ab
refac
2026-01-03 18:43:12 +04:00
Classic298
823b9a6dd9
chore/perf: Remove old SRC level log env vars with no impact ( #20045 )
...
* Update openai.py
* Update env.py
* Merge pull request open-webui#19030 from open-webui/dev (#119 )
Co-authored-by: Tim Baek <tim@openwebui.com >
Co-authored-by: Claude <noreply@anthropic.com >
---------
Co-authored-by: Tim Baek <tim@openwebui.com >
Co-authored-by: Claude <noreply@anthropic.com >
2025-12-20 08:16:14 -05:00
Timothy Jaeryang Baek
54beeeaf72
refac: tools
2025-09-26 19:01:22 -05:00
Timothy Jaeryang Baek
faf01bdeac
fix: None Type tool installation during startup
...
Co-Authored-By: Adam Outler <adamoutler@gmail.com >
2025-08-20 23:58:08 +04:00
Timothy Jaeryang Baek
d81886e315
refac
2025-05-28 01:42:42 +04:00
Timothy Jaeryang Baek
f5fefb49d5
refac
2025-05-28 01:38:24 +04:00
Timothy Jaeryang Baek
40bea00e3d
refac
2025-05-27 16:06:00 +04:00
Timothy Jaeryang Baek
b944acd3ff
refac: function cache
2025-05-27 14:39:35 +04:00
Gunwoo Hur
14c3d0c2d1
Prevent duplicate function module loads with caching helper and refactor
2025-05-27 18:08:58 +09:00
Timothy Jaeryang Baek
eb68b21e0f
refac
2025-04-30 16:01:23 +04:00
Alexander Grimm
e80ed32aeb
fix: install external requirements of admin functions and tools on startups
2025-04-30 11:14:38 +00:00
Timothy Jaeryang Baek
53df5d3946
refac: rename hard to understand cryptic function names
2025-04-10 19:41:17 -07:00
Timothy Jaeryang Baek
93bb77ede3
refac
2025-04-05 05:03:15 -06:00
Timothy Jaeryang Baek
b609b9d297
chore: format
2025-03-18 06:39:42 -07:00
Nikes
b6664f5ae8
feat: pip options in tools/functions install requirements
2025-03-12 23:15:26 +02:00
Timothy Jaeryang Baek
0c5a1e84e3
Merge pull request #11472 from thiswillbeyourgithub/better_frontmatter_pip_install3
...
fix: install all the requirements at the same time
2025-03-09 20:57:06 -03:00
thiswillbeyourgithub
9e41b8b024
fix: install all the requirements at the same time
...
Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com >
2025-03-09 23:38:23 +01:00
Yifang Deng
0e5d5ecb81
refactor: replace print statements with logging for better error tracking
2025-02-25 15:53:55 +01:00
James Westbrook
48c2fb0d24
fix: Add error catching for function pip install issues
2025-01-30 13:32:11 -07:00
Timothy Jaeryang Baek
d3d161f723
wip
2024-12-10 00:54:13 -08:00