mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
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> |
||
|---|---|---|
| .. | ||
| agent | ||
| app | ||
| base | ||
| callback_handler | ||
| datasource | ||
| entities | ||
| errors | ||
| extension | ||
| external_data_tool | ||
| file | ||
| helper | ||
| llm_generator | ||
| mcp | ||
| memory | ||
| model_runtime | ||
| moderation | ||
| ops | ||
| plugin | ||
| prompt | ||
| rag | ||
| repositories | ||
| schemas | ||
| tools | ||
| variables | ||
| workflow | ||
| __init__.py | ||
| hosting_configuration.py | ||
| indexing_runner.py | ||
| model_manager.py | ||
| provider_manager.py | ||