Jyong and Claude Fable 5.2
f276afa378
fix(api): keep index tasks from stranding documents and cleanup
...
- Segment enable/disable/delete tasks wait for a busy document index
lock instead of giving up after five retries.
- Tasks that exhaust retries resolve documents left in a transitional
state so users can retry them, and clear indexing cache flags.
- Hand off the duplicate-indexing tenant queue slot only on a final
attempt.
- Document cleanup bounds non-lock retries and falls back to relational
cleanup when index cleanup fails terminally.
- App removal continues past failing records and reports them once.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com >
2026-11-17 15:36:06 +08:00
Byron Wang
87c6d94564
refactor(api): clarify knowledge service boundaries and resource lifecycles
2026-10-30 16:13:53 +08:00
Asuka Minato and Codex
56f1dc2cb8
ci: enable Ruff UP032 ( #44092 )
...
Co-authored-by: Codex <codex@openai.com >
2026-10-15 01:01:15 +00:00
Byron.wang and autofix-ci[bot]
95373bc4fd
refactor(api): consolidate account modules and shared errors ( #42570 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-30 07:26:44 +00:00
Byron.wang and Jyong
a67cd87eb0
refactor(api): establish dataset application boundaries ( #41729 )
...
Co-authored-by: Jyong <jyong@dify.ai >
2026-09-29 08:42:31 +00:00
CoralGarden52
89df7a670a
fix(dataset): clean multimodal attachments during reindex ( #41999 )
2026-09-09 01:43:57 +00:00
Byron.wang and WH-2099
ab3e4daa95
refactor: explicit DB session propagation across backend paths ( #38559 )
...
Co-authored-by: WH-2099 <wh2099@pm.me >
2026-07-15 06:48:28 +00:00
EvanYao and autofix-ci[bot]
cdcfd2ef2c
fix: regenerate document summary after update via API ( #35950 ) ( #36035 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-15 07:26:29 +00:00
Asuka Minato and autofix-ci[bot]
51a8f79d67
chore: DocumentSegment to Typebase ( #35635 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-12 07:02:17 +00:00
Renzo
3e995e6a6d
refactor: migrate session.query to select API in document task files ( #34646 )
2026-04-07 05:53:21 +00:00
tmimmanuel and autofix-ci[bot]
3870b2ad2d
refactor: use EnumText for dataset and replace string literals 4 ( #33606 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-18 09:18:08 +09:00
wangxiaolei and autofix-ci[bot]
aead4fe65c
refactor: document_indexing_update_task split database session ( #32105 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-09 10:49:23 +08:00
wangxiaolei
b886b3f6c8
fix: fix miss use db.session ( #31971 )
2026-02-05 14:42:34 +08:00
wangxiaolei and autofix-ci[bot]
121d301a41
refactor: use session factory instead of call db.session directly ( #31198 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-21 13:43:06 +08:00
cbc0e639e4
update sql in batch ( #24801 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: -LAN- <laipz8200@outlook.com >
2025-09-10 13:00:17 +08:00
fa753239ad
Refactor: use logger = logging.getLogger(__name__) in logging ( #24515 )
...
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2025-08-26 18:10:31 +08:00
Bowen Liang
d8000251ff
chore: apply static type checks on celery async task dispatches and imports ( #24418 )
2025-08-24 23:07:22 +08:00
-LAN-
da9af7b547
[Chore/Refactor] Use centralized naive_utc_now for UTC datetime operations ( #24352 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-08-22 23:53:05 +08:00
Asuka Minato
a189d293f8
make logging not use f-str, change others to f-str ( #22882 )
2025-07-25 10:32:48 +08:00
ef51678c73
orm filter -> where ( #22801 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-24 00:57:45 +08:00
Jyong
fb12a3033d
fix celery job not closed issue ( #19268 )
2025-05-30 14:42:47 +08:00
Jyong
c8145ce581
deal db session in celery worker ( #17549 )
2025-04-07 20:31:26 +08:00
Jyong
9231fdbf4c
Feat/support parent child chunk ( #12092 )
2024-12-25 19:49:07 +08:00
yihong
56e15d09a9
feat: mypy for all type check ( #10921 )
2024-12-24 18:38:51 +08:00
Bowen Liang
6c8e208ef3
chore: bump minimum supported Python version to 3.11 ( #10386 )
2024-11-24 13:28:46 +08:00
Bowen Liang
292220c596
chore: apply pep8-naming rules for naming convention ( #8261 )
2024-09-11 16:40:52 +08:00
Bowen Liang
979422cdc6
chore(api/tasks): apply ruff reformatting ( #7594 )
2024-08-26 13:38:37 +08:00
Jyong
443e96777b
update empty document caused delete exist collection ( #6392 )
2024-07-17 20:38:32 +08:00
LIU HONGWEI
c227f3d985
feat: Deprecate datetime.utcnow() in favor of datetime.now(timezone.utc).replace(tzinfo=None) for better timezone handling ( #3408 ) ( #3416 )
2024-04-12 16:22:24 +08:00
Jyong and jyong
6c4e6bf1d6
Feat/dify rag ( #2528 )
...
Co-authored-by: jyong <jyong@dify.ai >
2024-02-22 23:31:57 +08:00
Bowen Liang
843280f82b
enhancement: introduce Ruff for Python linter for reordering and removing unused imports with automated pre-commit and sytle check ( #2366 )
2024-02-06 13:21:13 +08:00
Bowen Liang
cc9e74123c
improve: introduce isort for linting Python imports ( #1983 )
2024-01-12 12:34:01 +08:00
takatost
0c18cab111
feat: add queue to celery task ( #688 )
2023-07-31 13:13:08 +08:00
John Wang and jyong
3241e4015b
feat: upgrade langchain ( #430 )
...
Co-authored-by: jyong <718720800@qq.com >
2023-06-25 16:49:14 +08:00
9253f72dea
Feat/dataset notion import ( #392 )
...
Co-authored-by: StyleZhang <jasonapring2015@outlook.com >
Co-authored-by: JzoNg <jzongcode@gmail.com >
2023-06-16 21:47:51 +08:00
Jyong
35a2beb195
delete segment not commit ( #309 )
2023-06-06 23:16:51 +08:00
c67f626b66
Feat: Support re-segmentation ( #114 )
...
Co-authored-by: John Wang <takatost@gmail.com >
Co-authored-by: Jyong <718720800@qq.com >
Co-authored-by: 金伟强 <iamjoel007@gmail.com >
2023-06-01 23:19:36 +08:00