edda-framework 0.16.0__tar.gz → 0.16.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {edda_framework-0.16.0 → edda_framework-0.16.2}/.github/workflows/ci.yml +10 -9
- {edda_framework-0.16.0 → edda_framework-0.16.2}/PKG-INFO +2 -2
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/replay.py +15 -1
- {edda_framework-0.16.0 → edda_framework-0.16.2}/pyproject.toml +2 -2
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_outbox.py +15 -5
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_stale_workflow_recovery.py +137 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/uv.lock +2 -2
- {edda_framework-0.16.0 → edda_framework-0.16.2}/.github/workflows/docs.yml +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/.github/workflows/release.yml +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/.gitignore +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/.gitmodules +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/.python-version +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/Justfile +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/LICENSE +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/README.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/demo_app.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/api/reference.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/durable-execution/replay.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/events/cloudevents-http-binding.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/events/postgres-notify.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/events/wait-event.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/hooks.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/messages.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/retry.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/saga-compensation.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/transactional-outbox.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/workflows-activities.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/examples/ecommerce.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/examples/events.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/examples/fastapi-integration.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/examples/saga.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/examples/simple.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/getting-started/concepts.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/getting-started/first-workflow.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/getting-started/installation.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/getting-started/quick-start.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/index.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/integrations/llamaindex.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/integrations/mcp.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/integrations/mirascope.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/integrations/opentelemetry.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/integrations/pydantic-graph.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/integrations/pydantic-rpc.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/cloudevents-cli-trigger.png +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/compensation-execution.png +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/detail-page-loan-approval.png +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/detail-page-match-case.png +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/nested-pydantic-form.png +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/start-workflow-form-pydantic.png +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/wait-event-visualization.png +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/workflow-list-view.png +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/workflow-selection-dropdown.png +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/setup.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/visualization.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/activity.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/app.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/channels.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/compensation.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/context.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/exceptions.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/hooks.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/graph/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/graph/context.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/graph/exceptions.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/graph/graph.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/graph/nodes.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/llamaindex/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/llamaindex/events.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/llamaindex/exceptions.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/llamaindex/workflow.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/mcp/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/mcp/decorators.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/mcp/server.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/mirascope/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/mirascope/agent.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/mirascope/call.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/mirascope/decorator.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/mirascope/types.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/opentelemetry/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/integrations/opentelemetry/hooks.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/locking.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/migrations/mysql/20251217000000_initial_schema.sql +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/migrations/postgresql/20251217000000_initial_schema.sql +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/migrations/sqlite/20251217000000_initial_schema.sql +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/outbox/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/outbox/relayer.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/outbox/transactional.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/pydantic_utils.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/retry.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/serialization/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/serialization/base.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/serialization/json.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/storage/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/storage/migrations.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/storage/models.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/storage/notify_base.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/storage/pg_notify.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/storage/protocol.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/storage/sqlalchemy_storage.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/viewer_app.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/viewer_ui/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/viewer_ui/app.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/viewer_ui/components.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/viewer_ui/data_service.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/viewer_ui/theme.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/visualizer/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/visualizer/ast_analyzer.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/visualizer/mermaid_generator.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/workflow.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/edda/wsgi.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/cancellable_workflow.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/compensation_workflow.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/event_waiting_app.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/event_waiting_workflow.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/event_waiting_workflow_complete.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/graph/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/graph/demo_graph.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/graph/demo_graph_sleep.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/graph/demo_graph_wait_event.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/llamaindex/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/llamaindex/demo_workflow.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/long_running_loop.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mcp/README.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mcp/order_processing_mcp.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mcp/prompts_example.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mcp/remote_server_example.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mcp/simple_mcp_server.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/message_passing.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mirascope/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mirascope/durable_agent.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mirascope/multi_turn.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mirascope/simple_call.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/mirascope/with_tools.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/observability_with_logfire.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/observability_with_opentelemetry.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/pydantic_rpc_integration.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/pydantic_saga.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/retry_example.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/retry_with_compensation.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/simple_workflow.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/typeddict_example.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/examples/with_outbox.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/schema/.dbmate.yml +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/schema/.gitignore +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/schema/LICENSE +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/schema/README.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/schema/docs/column-values.md +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/conftest.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mcp/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mcp/test_cancel.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mcp/test_integration.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mcp/test_jsonrpc.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mcp/test_prompts.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mcp/test_server.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mirascope/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mirascope/test_agent.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mirascope/test_call.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mirascope/test_decorator.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/mirascope/test_types.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/opentelemetry/__init__.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/integrations/opentelemetry/test_hooks.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_activity.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_activity_retry.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_activity_sync.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_app.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_ast_analyzer.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_atomic_wait_event.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_auto_migration.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_binary_data.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_channel_competing.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_channel_direct.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_channel_mode_locking.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_channel_transactional.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_cloudevents_http_binding.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_compensation.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_compensation_crash_recovery.py.wip +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_concurrent_outbox.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_context.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_cross_language_channel.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_ctx_session.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_distributed_event_delivery.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_events.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_graph_integration.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_instance_id_routing.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_lock_race_condition.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_lock_timeout_customization.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_locking.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_mermaid_escape.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_message_cleanup.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_message_delivery_lock.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_messages.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_migrations_integration.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_multidb_storage.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_pg_notify.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_polling_optimization.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_pydantic_activity.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_pydantic_enum.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_pydantic_events.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_pydantic_saga.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_pydantic_utils.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_receive_timeout.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_received_event.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_recur.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_recur_cleanup.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_replay.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_retry_policy.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_saga_parameter_extraction.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_serialization.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_skip_locked.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_storage.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_storage_mysql.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_storage_postgresql.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_transactions.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_version.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_viewer_pagination.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_viewer_pydantic_form.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_viewer_start_saga.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_wait_timer.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_workflow.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_workflow_auto_register.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_workflow_cancellation.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/tests/test_workflow_resumption.py +0 -0
- {edda_framework-0.16.0 → edda_framework-0.16.2}/zensical.toml +0 -0
|
@@ -67,17 +67,18 @@ jobs:
|
|
|
67
67
|
- name: Check Python version
|
|
68
68
|
run: uv run python -c "import sys; assert sys.version.startswith('${{ matrix.python-version }}.'), sys.version"
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
env:
|
|
72
|
-
EDDA_TEST_POSTGRES_URL: postgresql+asyncpg://edda:edda_test_password@localhost:5432/edda_test
|
|
73
|
-
EDDA_TEST_MYSQL_URL: mysql+aiomysql://edda:edda_test_password@localhost:3306/edda_test
|
|
74
|
-
run: uv run pytest -v --tb=short
|
|
75
|
-
|
|
76
|
-
- name: Type check
|
|
77
|
-
run: uv run mypy edda
|
|
78
|
-
|
|
70
|
+
# Fast checks first, so lint failures show up before the ~10 minute test run
|
|
79
71
|
- name: Lint with ruff
|
|
80
72
|
run: uv run ruff check edda tests
|
|
81
73
|
|
|
82
74
|
- name: Check formatting
|
|
83
75
|
run: uv run black --check edda tests
|
|
76
|
+
|
|
77
|
+
- name: Type check
|
|
78
|
+
run: uv run mypy edda
|
|
79
|
+
|
|
80
|
+
- name: Run tests (all databases)
|
|
81
|
+
env:
|
|
82
|
+
EDDA_TEST_POSTGRES_URL: postgresql+asyncpg://edda:edda_test_password@localhost:5432/edda_test
|
|
83
|
+
EDDA_TEST_MYSQL_URL: mysql+aiomysql://edda:edda_test_password@localhost:3306/edda_test
|
|
84
|
+
run: uv run pytest -v --tb=short
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: edda-framework
|
|
3
|
-
Version: 0.16.
|
|
3
|
+
Version: 0.16.2
|
|
4
4
|
Summary: Lightweight Durable Execution Framework
|
|
5
5
|
Project-URL: Homepage, https://github.com/i2y/edda
|
|
6
6
|
Project-URL: Documentation, https://github.com/i2y/edda#readme
|
|
@@ -23,7 +23,7 @@ Requires-Python: >=3.11
|
|
|
23
23
|
Requires-Dist: a2wsgi>=1.10.0
|
|
24
24
|
Requires-Dist: aiosqlite>=0.21.0
|
|
25
25
|
Requires-Dist: anyio>=4.0.0
|
|
26
|
-
Requires-Dist: cloudevents
|
|
26
|
+
Requires-Dist: cloudevents<2,>=1.12.0
|
|
27
27
|
Requires-Dist: httpx2>=2.13.1
|
|
28
28
|
Requires-Dist: pydantic>=2.0.0
|
|
29
29
|
Requires-Dist: sqlalchemy[asyncio]>=2.0.0
|
|
@@ -450,9 +450,10 @@ class ReplayEngine:
|
|
|
450
450
|
workflow_func: The workflow function to execute
|
|
451
451
|
"""
|
|
452
452
|
# Create context for replay
|
|
453
|
+
workflow_name = instance["workflow_name"]
|
|
453
454
|
ctx = WorkflowContext(
|
|
454
455
|
instance_id=instance_id,
|
|
455
|
-
workflow_name=
|
|
456
|
+
workflow_name=workflow_name,
|
|
456
457
|
storage=self.storage,
|
|
457
458
|
worker_id=self.worker_id,
|
|
458
459
|
is_replaying=True,
|
|
@@ -486,6 +487,10 @@ class ReplayEngine:
|
|
|
486
487
|
# Mark as completed
|
|
487
488
|
await ctx._update_status("completed", {"result": result_dict})
|
|
488
489
|
|
|
490
|
+
# Call hook: workflow complete
|
|
491
|
+
if self.hooks and hasattr(self.hooks, "on_workflow_complete"):
|
|
492
|
+
await self.hooks.on_workflow_complete(instance_id, workflow_name, result)
|
|
493
|
+
|
|
489
494
|
except WaitForTimerException as exc:
|
|
490
495
|
# Workflow is waiting for a timer (again)
|
|
491
496
|
# Atomically register timer subscription and release lock (distributed coroutines)
|
|
@@ -570,6 +575,11 @@ class ReplayEngine:
|
|
|
570
575
|
|
|
571
576
|
# Ensure status is "cancelled"
|
|
572
577
|
await ctx._update_status("cancelled", {"reason": "Workflow cancelled by user"})
|
|
578
|
+
|
|
579
|
+
# Call hook: workflow cancelled
|
|
580
|
+
if self.hooks and hasattr(self.hooks, "on_workflow_cancelled"):
|
|
581
|
+
await self.hooks.on_workflow_cancelled(instance_id, workflow_name)
|
|
582
|
+
|
|
573
583
|
return
|
|
574
584
|
|
|
575
585
|
# Execute compensations before marking as failed
|
|
@@ -597,6 +607,10 @@ class ReplayEngine:
|
|
|
597
607
|
|
|
598
608
|
# Mark as failed with detailed error information
|
|
599
609
|
await ctx._update_status("failed", error_data)
|
|
610
|
+
|
|
611
|
+
# Call hook: workflow failed
|
|
612
|
+
if self.hooks and hasattr(self.hooks, "on_workflow_failed"):
|
|
613
|
+
await self.hooks.on_workflow_failed(instance_id, workflow_name, error)
|
|
600
614
|
raise
|
|
601
615
|
|
|
602
616
|
async def resume_by_name(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "edda-framework"
|
|
3
|
-
version = "0.16.
|
|
3
|
+
version = "0.16.2"
|
|
4
4
|
description = "Lightweight Durable Execution Framework"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Yasushi Itoh", email = "6240399+i2y@users.noreply.github.com" }
|
|
@@ -24,7 +24,7 @@ classifiers = [
|
|
|
24
24
|
dependencies = [
|
|
25
25
|
"anyio>=4.0.0",
|
|
26
26
|
"a2wsgi>=1.10.0",
|
|
27
|
-
"cloudevents>=1.12.0",
|
|
27
|
+
"cloudevents>=1.12.0,<2",
|
|
28
28
|
"httpx2>=2.13.1",
|
|
29
29
|
"pydantic>=2.0.0",
|
|
30
30
|
"sqlalchemy[asyncio]>=2.0.0",
|
|
@@ -333,7 +333,7 @@ class TestOutboxRelayer:
|
|
|
333
333
|
|
|
334
334
|
await relayer.stop()
|
|
335
335
|
|
|
336
|
-
async def test_relayer_polling_loop(self, sqlite_storage, create_test_instance):
|
|
336
|
+
async def test_relayer_polling_loop(self, sqlite_storage, create_test_instance, monkeypatch):
|
|
337
337
|
"""Test that relayer continuously polls for events."""
|
|
338
338
|
relayer = OutboxRelayer(
|
|
339
339
|
storage=sqlite_storage,
|
|
@@ -353,6 +353,16 @@ class TestOutboxRelayer:
|
|
|
353
353
|
content_type="application/json",
|
|
354
354
|
)
|
|
355
355
|
|
|
356
|
+
# Signal once the event has been marked published
|
|
357
|
+
published = asyncio.Event()
|
|
358
|
+
mark_outbox_published = sqlite_storage.mark_outbox_published
|
|
359
|
+
|
|
360
|
+
async def mark_and_signal(event_id: str) -> None:
|
|
361
|
+
await mark_outbox_published(event_id)
|
|
362
|
+
published.set()
|
|
363
|
+
|
|
364
|
+
monkeypatch.setattr(sqlite_storage, "mark_outbox_published", mark_and_signal)
|
|
365
|
+
|
|
356
366
|
# Start relayer
|
|
357
367
|
await relayer.start()
|
|
358
368
|
|
|
@@ -363,10 +373,10 @@ class TestOutboxRelayer:
|
|
|
363
373
|
mock_client.post = AsyncMock(return_value=mock_response)
|
|
364
374
|
mock_client.aclose = AsyncMock() # Mock aclose as async
|
|
365
375
|
|
|
366
|
-
#
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
376
|
+
# Stop only after the poll's DB work: stop() cancels the loop, and
|
|
377
|
+
# cancelling mid-query wipes the in-memory database
|
|
378
|
+
async with asyncio.timeout(5):
|
|
379
|
+
await published.wait()
|
|
370
380
|
await relayer.stop()
|
|
371
381
|
|
|
372
382
|
# Verify event was published
|
|
@@ -12,6 +12,7 @@ from datetime import UTC, datetime, timedelta
|
|
|
12
12
|
from typing import Any
|
|
13
13
|
from unittest.mock import AsyncMock, MagicMock
|
|
14
14
|
|
|
15
|
+
import pytest
|
|
15
16
|
from sqlalchemy import text, update
|
|
16
17
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
17
18
|
|
|
@@ -50,6 +51,41 @@ async def run_periodic_until(periodic: Coroutine[Any, Any, None], done: asyncio.
|
|
|
50
51
|
await task
|
|
51
52
|
|
|
52
53
|
|
|
54
|
+
async def mark_workflow_crashed(storage, instance_id: str, worker_id: str = "crashed_worker"):
|
|
55
|
+
"""Reset a workflow to running with a stale lock as if the worker crashed"""
|
|
56
|
+
await storage.try_acquire_lock(instance_id, worker_id)
|
|
57
|
+
async with AsyncSession(storage.engine, expire_on_commit=False) as conn:
|
|
58
|
+
await conn.execute(
|
|
59
|
+
text(
|
|
60
|
+
"UPDATE workflow_instances SET status = 'running' WHERE instance_id = :instance_id"
|
|
61
|
+
),
|
|
62
|
+
{"instance_id": instance_id},
|
|
63
|
+
)
|
|
64
|
+
await conn.commit()
|
|
65
|
+
await set_lock_expired(storage, instance_id)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class RecordingHooks:
|
|
69
|
+
def __init__(self) -> None:
|
|
70
|
+
self.calls: list[tuple] = []
|
|
71
|
+
|
|
72
|
+
async def on_workflow_start(
|
|
73
|
+
self, instance_id: str, workflow_name: str, input_data: dict
|
|
74
|
+
) -> None:
|
|
75
|
+
self.calls.append(("on_workflow_start", instance_id, workflow_name, input_data))
|
|
76
|
+
|
|
77
|
+
async def on_workflow_complete(self, instance_id: str, workflow_name: str, result: Any) -> None:
|
|
78
|
+
self.calls.append(("on_workflow_complete", instance_id, workflow_name, result))
|
|
79
|
+
|
|
80
|
+
async def on_workflow_failed(
|
|
81
|
+
self, instance_id: str, workflow_name: str, error: Exception
|
|
82
|
+
) -> None:
|
|
83
|
+
self.calls.append(("on_workflow_failed", instance_id, workflow_name, error))
|
|
84
|
+
|
|
85
|
+
def calls_named(self, name: str) -> list[tuple]:
|
|
86
|
+
return [call for call in self.calls if call[0] == name]
|
|
87
|
+
|
|
88
|
+
|
|
53
89
|
# Test workflows and activities (prefixed with 'recovery_' to avoid pytest confusion)
|
|
54
90
|
@activity
|
|
55
91
|
async def recovery_activity(_ctx: WorkflowContext, value: int) -> int:
|
|
@@ -64,6 +100,15 @@ async def recovery_workflow(ctx: WorkflowContext, value: int) -> int:
|
|
|
64
100
|
return result
|
|
65
101
|
|
|
66
102
|
|
|
103
|
+
@workflow
|
|
104
|
+
async def recovery_failing_workflow(ctx: WorkflowContext, value: int) -> int:
|
|
105
|
+
"""Succeeds on first start, then fails during replay"""
|
|
106
|
+
result = await recovery_activity(ctx, value)
|
|
107
|
+
if ctx.is_replaying:
|
|
108
|
+
raise RuntimeError("recovery failed")
|
|
109
|
+
return result
|
|
110
|
+
|
|
111
|
+
|
|
67
112
|
class TestStaleLocksCleanup:
|
|
68
113
|
"""Tests for cleanup_stale_locks() method."""
|
|
69
114
|
|
|
@@ -446,3 +491,95 @@ class TestStaleWorkflowRecovery:
|
|
|
446
491
|
assert instance is not None
|
|
447
492
|
assert instance["status"] == "completed"
|
|
448
493
|
assert instance["output_data"]["result"] == 20 # 10 * 2
|
|
494
|
+
|
|
495
|
+
async def test_resume_calls_on_workflow_complete(self, sqlite_storage) -> None:
|
|
496
|
+
"""
|
|
497
|
+
Integration test with real ReplayEngine.
|
|
498
|
+
|
|
499
|
+
This test verifies that resuming a crashed workflow
|
|
500
|
+
fires on_workflow_complete
|
|
501
|
+
"""
|
|
502
|
+
|
|
503
|
+
hooks = RecordingHooks()
|
|
504
|
+
replay_engine = ReplayEngine(
|
|
505
|
+
storage=sqlite_storage,
|
|
506
|
+
service_name="test_service",
|
|
507
|
+
worker_id="test_worker",
|
|
508
|
+
hooks=hooks,
|
|
509
|
+
)
|
|
510
|
+
set_replay_engine(replay_engine)
|
|
511
|
+
|
|
512
|
+
instance_id = await recovery_workflow.start(value=10)
|
|
513
|
+
|
|
514
|
+
instance = await sqlite_storage.get_instance(instance_id)
|
|
515
|
+
assert instance is not None
|
|
516
|
+
assert instance["status"] == "completed"
|
|
517
|
+
assert instance["output_data"]["result"] == 20
|
|
518
|
+
|
|
519
|
+
# start will also fill the calls, so clear it out before resume
|
|
520
|
+
hooks.calls.clear()
|
|
521
|
+
|
|
522
|
+
await mark_workflow_crashed(sqlite_storage, instance_id)
|
|
523
|
+
|
|
524
|
+
workflows_to_resume = await sqlite_storage.cleanup_stale_locks()
|
|
525
|
+
assert len(workflows_to_resume) == 1
|
|
526
|
+
|
|
527
|
+
await replay_engine.resume_by_name(instance_id, "recovery_workflow")
|
|
528
|
+
|
|
529
|
+
complete_calls = hooks.calls_named("on_workflow_complete")
|
|
530
|
+
assert complete_calls == [("on_workflow_complete", instance_id, "recovery_workflow", 20)]
|
|
531
|
+
assert hooks.calls_named("on_workflow_failed") == []
|
|
532
|
+
|
|
533
|
+
instance = await sqlite_storage.get_instance(instance_id)
|
|
534
|
+
assert instance is not None
|
|
535
|
+
assert instance["status"] == "completed"
|
|
536
|
+
assert instance["output_data"]["result"] == 20
|
|
537
|
+
|
|
538
|
+
async def test_resume_calls_on_workflow_failed(self, sqlite_storage) -> None:
|
|
539
|
+
"""
|
|
540
|
+
Integration test with real ReplayEngine.
|
|
541
|
+
|
|
542
|
+
This test verifies that raising error during replay
|
|
543
|
+
calls on_workflow_failed
|
|
544
|
+
"""
|
|
545
|
+
|
|
546
|
+
hooks = RecordingHooks()
|
|
547
|
+
replay_engine = ReplayEngine(
|
|
548
|
+
storage=sqlite_storage,
|
|
549
|
+
service_name="test_service",
|
|
550
|
+
worker_id="test_worker",
|
|
551
|
+
hooks=hooks,
|
|
552
|
+
)
|
|
553
|
+
set_replay_engine(replay_engine)
|
|
554
|
+
|
|
555
|
+
instance_id = await recovery_failing_workflow.start(value=10)
|
|
556
|
+
|
|
557
|
+
instance = await sqlite_storage.get_instance(instance_id)
|
|
558
|
+
assert instance is not None
|
|
559
|
+
assert instance["status"] == "completed"
|
|
560
|
+
|
|
561
|
+
# start will also fill the calls, so clear it out before resume
|
|
562
|
+
hooks.calls.clear()
|
|
563
|
+
|
|
564
|
+
await mark_workflow_crashed(sqlite_storage, instance_id)
|
|
565
|
+
|
|
566
|
+
workflows_to_resume = await sqlite_storage.cleanup_stale_locks()
|
|
567
|
+
assert len(workflows_to_resume) == 1
|
|
568
|
+
|
|
569
|
+
with pytest.raises(RuntimeError, match="recovery failed"):
|
|
570
|
+
await replay_engine.resume_by_name(instance_id, "recovery_failing_workflow")
|
|
571
|
+
|
|
572
|
+
failed_calls = hooks.calls_named("on_workflow_failed")
|
|
573
|
+
assert len(failed_calls) == 1
|
|
574
|
+
hook_name, hook_instance_id, workflow_name, error = failed_calls[0]
|
|
575
|
+
assert hook_name == "on_workflow_failed"
|
|
576
|
+
assert hook_instance_id == instance_id
|
|
577
|
+
assert workflow_name == "recovery_failing_workflow"
|
|
578
|
+
assert isinstance(error, RuntimeError)
|
|
579
|
+
assert str(error) == "recovery failed"
|
|
580
|
+
assert hooks.calls_named("on_workflow_complete") == []
|
|
581
|
+
|
|
582
|
+
instance = await sqlite_storage.get_instance(instance_id)
|
|
583
|
+
assert instance is not None
|
|
584
|
+
assert instance["status"] == "failed"
|
|
585
|
+
assert "recovery failed" in instance["output_data"]["error_message"]
|
|
@@ -766,7 +766,7 @@ wheels = [
|
|
|
766
766
|
|
|
767
767
|
[[package]]
|
|
768
768
|
name = "edda-framework"
|
|
769
|
-
version = "0.16.
|
|
769
|
+
version = "0.16.2"
|
|
770
770
|
source = { editable = "." }
|
|
771
771
|
dependencies = [
|
|
772
772
|
{ name = "a2wsgi" },
|
|
@@ -845,7 +845,7 @@ requires-dist = [
|
|
|
845
845
|
{ name = "asyncpg", marker = "extra == 'postgres-notify'", specifier = ">=0.30.0" },
|
|
846
846
|
{ name = "asyncpg", marker = "extra == 'postgresql'", specifier = ">=0.30.0" },
|
|
847
847
|
{ name = "black", marker = "extra == 'dev'", specifier = ">=25.9.0" },
|
|
848
|
-
{ name = "cloudevents", specifier = ">=1.12.0" },
|
|
848
|
+
{ name = "cloudevents", specifier = ">=1.12.0,<2" },
|
|
849
849
|
{ name = "httpx2", specifier = ">=2.13.1" },
|
|
850
850
|
{ name = "llama-index-core", marker = "extra == 'llamaindex'", specifier = ">=0.12.0" },
|
|
851
851
|
{ name = "mcp", marker = "extra == 'dev'", specifier = ">=2.2.0" },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/durable-execution/replay.md
RENAMED
|
File without changes
|
|
File without changes
|
{edda_framework-0.16.0 → edda_framework-0.16.2}/docs/core-features/events/postgres-notify.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/cloudevents-cli-trigger.png
RENAMED
|
File without changes
|
{edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/compensation-execution.png
RENAMED
|
File without changes
|
{edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/detail-page-loan-approval.png
RENAMED
|
File without changes
|
{edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/detail-page-match-case.png
RENAMED
|
File without changes
|
{edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/nested-pydantic-form.png
RENAMED
|
File without changes
|
|
File without changes
|
{edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/wait-event-visualization.png
RENAMED
|
File without changes
|
{edda_framework-0.16.0 → edda_framework-0.16.2}/docs/viewer-ui/images/workflow-list-view.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|