dify/api/tests/test_containers_integration...
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
..
core feat(api): Introduce `WorkflowResumptionContext` for pause state management (#28122) 2025-11-12 17:00:02 +08:00
factories chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
libs/broadcast_channel/redis feat(api): Introduce Broadcast Channel (#27835) 2025-11-10 17:23:21 +08:00
services feat: implement file extension blacklist for upload security (#27540) 2025-11-04 15:45:22 +08:00
tasks fix document index test (#28113) 2025-11-12 16:00:10 +08:00
workflow Feat add testcontainers test (#23269) 2025-08-04 19:27:36 +08:00
__init__.py Feat add testcontainers test (#23269) 2025-08-04 19:27:36 +08:00
conftest.py Feature add test containers mail email code login task (#26580) 2025-10-05 12:44:40 +08:00
test_workflow_pause_integration.py feat(api): Introduce workflow pause state management (#27298) 2025-10-30 14:41:09 +08:00