dify/api/tests/unit_tests
QuantumGhost fd255e81e1
feat(api): Introduce `WorkflowResumptionContext` for pause state management (#28122)
Certain metadata (including but not limited to `InvokeFrom`, `call_depth`, and `streaming`)  is required when resuming a paused workflow. However, these fields are not part of `GraphRuntimeState` and were not saved in the previous
 implementation of  `PauseStatePersistenceLayer`.

This commit addresses this limitation by introducing a `WorkflowResumptionContext` model that wraps both the `*GenerateEntity` and `GraphRuntimeState`. This approach provides:

- A structured container for all necessary resumption data
- Better separation of concerns between execution state and persistence
- Enhanced extensibility for future metadata additions
- Clearer naming that distinguishes from `GraphRuntimeState`

The `WorkflowResumptionContext` model makes extending the pause state easier while maintaining backward compatibility and proper version management for the entire execution state ecosystem.

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 17:00:02 +08:00
..
configs feat: update HTTP timeout configurations and enhance timeout input handling in UI (#26685) 2025-10-10 09:00:06 +08:00
controllers refactor: replace localStorage with HTTP-only cookies for auth tokens (#24365) 2025-10-19 21:29:04 +08:00
core feat(api): Introduce `WorkflowResumptionContext` for pause state management (#28122) 2025-11-12 17:00:02 +08:00
extensions Removes the 'extensions' directory from pyrightconfig.json and fixes … (#26512) 2025-10-05 15:57:42 +09:00
factories feat: implement strict type validation for remote file uploads (#27010) 2025-10-18 11:44:11 +08:00
libs feat(api): Introduce Broadcast Channel (#27835) 2025-11-10 17:23:21 +08:00
models feat(api): Introduce workflow pause state management (#27298) 2025-10-30 14:41:09 +08:00
oss rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
repositories feat(api): Introduce workflow pause state management (#27298) 2025-10-30 14:41:09 +08:00
services refactor: implement tenant self queue for rag tasks (#27559) 2025-11-06 21:25:50 +08:00
tasks feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
tools fix(api): ensure JSON responses are properly serialized in ApiTool (#27097) 2025-10-19 18:56:02 +08:00
utils rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
.gitignore Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
conftest.py fix: resolve Redis mock import error in test configuration (#22663) 2025-07-20 11:06:38 +08:00