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
24f8702174
Merge main into knowledge service boundary refactor
2026-10-30 16:48:14 +08:00
Byron Wang
87c6d94564
refactor(api): clarify knowledge service boundaries and resource lifecycles
2026-10-30 16:13:53 +08:00
7445e48323
chore: port Document to TypeBase ( #36084 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com >
2026-10-23 02:56:00 +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
mesrop2008
23150c2319
fix(api): attach exc_info=True to logger.warning sites that drop the traceback ( #41068 )
2026-08-21 11:20:42 +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
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
173e818a62
refactor: migrate session.query to select API in summary and remove document tasks ( #34650 )
2026-04-07 05:55:31 +00:00
c2473d85dc
feat: Add summary index for knowledge. ( #31625 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com >
Co-authored-by: zxhlyh <jasonapring2015@outlook.com >
Co-authored-by: Yansong Zhang <916125788@qq.com >
Co-authored-by: hj24 <mambahj24@gmail.com >
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-29 13:47:35 +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
c8145ce581
deal db session in celery worker ( #17549 )
2025-04-07 20:31:26 +08:00
Jyong
5a3fe61f2a
disable all chunks status when disable document ( #12149 )
2024-12-27 17:08:44 +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
979422cdc6
chore(api/tasks): apply ruff reformatting ( #7594 )
2024-08-26 13:38:37 +08:00
Bowen Liang
e42175241e
fix: tolerate exceptions in cleaning up index when vector db service unavailable ( #2533 )
2024-02-23 12:30:39 +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
da04ff040b
fix: remove document from dataset error when vector index npe ( #489 )
2023-06-29 13:09:22 +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
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
John Wang
db896255d6
Initial commit
2023-05-15 08:51:32 +08:00