durable-workflow 2.22.0__tar.gz → 2.22.1__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.
Files changed (246) hide show
  1. {durable_workflow-2.22.0/src/durable_workflow.egg-info → durable_workflow-2.22.1}/PKG-INFO +1 -1
  2. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/pyproject.toml +3 -3
  3. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/errors.py +17 -1
  4. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/replay_verify.py +4 -5
  5. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/worker.py +2 -2
  6. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/workflow.py +26 -1
  7. {durable_workflow-2.22.0 → durable_workflow-2.22.1/src/durable_workflow.egg-info}/PKG-INFO +1 -1
  8. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_replay_regression_corpus.py +2 -0
  9. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_replay_verify.py +37 -0
  10. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker.py +24 -0
  11. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/LICENSE +0 -0
  12. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/README.md +0 -0
  13. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/setup.cfg +0 -0
  14. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/__init__.py +0 -0
  15. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_activity_checkpoint.py +0 -0
  16. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_activity_lease.py +0 -0
  17. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_activity_process.py +0 -0
  18. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_avro.py +0 -0
  19. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_cancellation_scope.py +0 -0
  20. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_cancellation_scope_history.py +0 -0
  21. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_capabilities_digest.py +0 -0
  22. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_condition_fingerprint.py +0 -0
  23. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_cooperative_cancellation.py +0 -0
  24. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_failure_reporting.py +0 -0
  25. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_metric_routes.py +0 -0
  26. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_poll_transport.py +0 -0
  27. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_prepared_local_activity.py +0 -0
  28. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_query_task_authority.py +0 -0
  29. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_response_limit.py +0 -0
  30. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_sticky_workflow_cache.py +0 -0
  31. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/_typed_values.py +0 -0
  32. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/activity.py +0 -0
  33. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/auth_composition.py +0 -0
  34. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/cancellation.py +0 -0
  35. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/client.py +0 -0
  36. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/external_storage.py +0 -0
  37. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/external_task_input.py +0 -0
  38. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/external_task_result.py +0 -0
  39. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/history_bundle_verify.py +0 -0
  40. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/interceptors.py +0 -0
  41. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/invocable.py +0 -0
  42. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/metrics.py +0 -0
  43. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/nexus.py +0 -0
  44. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/py.typed +0 -0
  45. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/python_conformance.py +0 -0
  46. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/replay_clock.py +0 -0
  47. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/replay_clock_math.py +0 -0
  48. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/replay_conformance.py +0 -0
  49. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/retry_policy.py +0 -0
  50. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/serializer.py +0 -0
  51. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/server_compatibility.json +0 -0
  52. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/sync.py +0 -0
  53. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/telemetry.py +0 -0
  54. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/telemetry_carrier.py +0 -0
  55. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/testing.py +0 -0
  56. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/worker_session.py +0 -0
  57. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/worker_status.py +0 -0
  58. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow/workflow_updates_conformance.py +0 -0
  59. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow.egg-info/SOURCES.txt +0 -0
  60. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow.egg-info/dependency_links.txt +0 -0
  61. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow.egg-info/entry_points.txt +0 -0
  62. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow.egg-info/requires.txt +0 -0
  63. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/src/durable_workflow.egg-info/top_level.txt +0 -0
  64. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_acceptance_authority.py +0 -0
  65. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_acceptance_consumer.py +0 -0
  66. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_acceptance_entry.py +0 -0
  67. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_cancellation_policies.py +0 -0
  68. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_checkpoint.py +0 -0
  69. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_context.py +0 -0
  70. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_exponential_retry.py +0 -0
  71. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_heartbeat_authority.py +0 -0
  72. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_identity.py +0 -0
  73. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_install_inventory.py +0 -0
  74. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_lease_authority.py +0 -0
  75. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_lease_renewal.py +0 -0
  76. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_lease_worker.py +0 -0
  77. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_process.py +0 -0
  78. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_retry_cap_cell.py +0 -0
  79. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_retry_info.py +0 -0
  80. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_run_closed_refusal.py +0 -0
  81. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_activity_worker_lost.py +0 -0
  82. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_auth_composition.py +0 -0
  83. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_avro_value_benchmark.py +0 -0
  84. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_avro_value_protocol.py +0 -0
  85. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_business_replay_clock.py +0 -0
  86. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_business_replay_clock_child.py +0 -0
  87. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_business_replay_clock_parallel.py +0 -0
  88. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_business_replay_clock_redrive.py +0 -0
  89. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_business_replay_clock_sequence_claims.py +0 -0
  90. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cancellation_cause.py +0 -0
  91. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cancellation_context.py +0 -0
  92. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cancellation_remaining_time.py +0 -0
  93. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cancellation_scope_admission.py +0 -0
  94. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cancellation_scope_authoring.py +0 -0
  95. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cancellation_scope_boundary.py +0 -0
  96. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cancellation_scope_opening.py +0 -0
  97. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_capabilities_digest.py +0 -0
  98. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_capabilities_digest_unknown.py +0 -0
  99. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_checkpointed_batch_example.py +0 -0
  100. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_child_workflow_policies.py +0 -0
  101. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_ci_checkout.py +0 -0
  102. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_ci_integration_endpoint.py +0 -0
  103. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_client.py +0 -0
  104. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_client_iterators.py +0 -0
  105. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_client_telemetry.py +0 -0
  106. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_client_timeouts.py +0 -0
  107. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_codec_regression_corpus.py +0 -0
  108. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_command_keys_acceptance.py +0 -0
  109. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_command_keys_captured_inputs.py +0 -0
  110. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_command_keys_container_ownership.py +0 -0
  111. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_command_keys_workspace.py +0 -0
  112. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_committed_cancellation_scope_descendants.py +0 -0
  113. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_committed_cancellation_scope_groups.py +0 -0
  114. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_committed_cancellation_scope_history.py +0 -0
  115. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_committed_cancellation_scope_replay.py +0 -0
  116. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_completion_size_limit.py +0 -0
  117. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_condition_fingerprint.py +0 -0
  118. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_condition_occurrence_id.py +0 -0
  119. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_condition_replay_drift.py +0 -0
  120. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_control_plane_parity_fixtures.py +0 -0
  121. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cooperative_cancellation.py +0 -0
  122. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cooperative_cancellation_client.py +0 -0
  123. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cooperative_cancellation_worker.py +0 -0
  124. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_cooperative_remote_worker.py +0 -0
  125. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_docs_release_channel.py +0 -0
  126. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_docstring_cross_references.py +0 -0
  127. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_durable_selection.py +0 -0
  128. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_empty_callback_failure.py +0 -0
  129. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_errors.py +0 -0
  130. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_external_storage.py +0 -0
  131. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_external_task_input.py +0 -0
  132. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_external_task_result.py +0 -0
  133. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_failure_reporting.py +0 -0
  134. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_generator_lifecycle.py +0 -0
  135. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_golden_history_replay.py +0 -0
  136. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_history_bundle_pruned.py +0 -0
  137. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_history_bundle_schema2.py +0 -0
  138. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_history_bundle_verify.py +0 -0
  139. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_history_event_contract.py +0 -0
  140. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_invocable.py +0 -0
  141. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_local_activity_backoff.py +0 -0
  142. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_local_failure_reporting.py +0 -0
  143. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_message_streams.py +0 -0
  144. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_metric_routes.py +0 -0
  145. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_metrics.py +0 -0
  146. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_native_timer_redrive_cell.py +0 -0
  147. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_native_timer_redrive_clock.py +0 -0
  148. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_nexus_durable_wait.py +0 -0
  149. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_nexus_namespace.py +0 -0
  150. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_nexus_wire.py +0 -0
  151. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_order_processing_example.py +0 -0
  152. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_parallel_completion_order_replay.py +0 -0
  153. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_parallel_failure_order.py +0 -0
  154. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_parallel_group_boundaries.py +0 -0
  155. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_parallel_group_policy.py +0 -0
  156. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_parallel_member_failure_open_siblings.py +0 -0
  157. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_parallel_saga_authoring.py +0 -0
  158. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_patch_history.py +0 -0
  159. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_payload_policy_refresh.py +0 -0
  160. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_pending_operation_replay.py +0 -0
  161. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_physical_command_key_readback.py +0 -0
  162. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_poll_failure_backoff.py +0 -0
  163. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_poll_transport.py +0 -0
  164. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_portal_source_split.py +0 -0
  165. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_prepared_local_activity_client.py +0 -0
  166. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_prepared_local_activity_groups.py +0 -0
  167. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_prepared_local_activity_policies.py +0 -0
  168. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_prepared_local_activity_worker.py +0 -0
  169. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_public_boundary_scanner.py +0 -0
  170. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_publish_workflow_isolation.py +0 -0
  171. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_published_activity_acceptance.py +0 -0
  172. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_published_pagination_evidence.py +0 -0
  173. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_pypi_project_surface.py +0 -0
  174. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_python_conformance.py +0 -0
  175. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_queries.py +0 -0
  176. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_query_task_authority.py +0 -0
  177. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_query_timeout_retry.py +0 -0
  178. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_quiesced_snapshot.py +0 -0
  179. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_readme_quickstart.py +0 -0
  180. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_redrive_call_ledger.py +0 -0
  181. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_redrive_replay.py +0 -0
  182. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_redrive_successor_evidence.py +0 -0
  183. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_registration_ambiguity.py +0 -0
  184. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_release_metadata.py +0 -0
  185. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_release_promotion.py +0 -0
  186. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_replay.py +0 -0
  187. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_replay_clock.py +0 -0
  188. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_replay_conformance.py +0 -0
  189. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_response_body_limit.py +0 -0
  190. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_result_continue_as_new.py +0 -0
  191. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_retry_cap_download.py +0 -0
  192. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_retry_cap_workflow.py +0 -0
  193. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_retry_policy.py +0 -0
  194. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_run_activities.py +0 -0
  195. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_run_cancellation_scope_replay.py +0 -0
  196. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_run_closed_settlement_replay.py +0 -0
  197. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_runtime_external_payload_transport.py +0 -0
  198. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_schedule_origin.py +0 -0
  199. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_schedules.py +0 -0
  200. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_scoped_run_cancellation_context.py +0 -0
  201. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_sdk_metrics_contract.py +0 -0
  202. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_search_attribute_replay_identity.py +0 -0
  203. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_serializer.py +0 -0
  204. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_signal_external_workflow.py +0 -0
  205. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_signal_with_start.py +0 -0
  206. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_signals.py +0 -0
  207. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_sleep.py +0 -0
  208. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_standalone_activity_client.py +0 -0
  209. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_static_credential_validation.py +0 -0
  210. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_sticky_execution.py +0 -0
  211. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_sticky_history_suffix.py +0 -0
  212. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_storage_admission.py +0 -0
  213. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_sync.py +0 -0
  214. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_sync_activities.py +0 -0
  215. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_synthetic_command_key_readback.py +0 -0
  216. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_telemetry.py +0 -0
  217. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_telemetry_carrier.py +0 -0
  218. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_testing_failures.py +0 -0
  219. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_testing_harness.py +0 -0
  220. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_testing_nexus.py +0 -0
  221. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_threaded_heartbeat_example.py +0 -0
  222. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_tls_trust.py +0 -0
  223. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_transport_diagnostics.py +0 -0
  224. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_typed_values.py +0 -0
  225. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_typed_workflow_values.py +0 -0
  226. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_update_outcome.py +0 -0
  227. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_update_signal_condition_replay.py +0 -0
  228. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_updates.py +0 -0
  229. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_wait_condition.py +0 -0
  230. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_deregistration.py +0 -0
  231. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_observation.py +0 -0
  232. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_session.py +0 -0
  233. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_startup_buffered.py +0 -0
  234. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_startup_raw.py +0 -0
  235. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_startup_read_budget.py +0 -0
  236. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_startup_snapshot.py +0 -0
  237. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_status.py +0 -0
  238. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_telemetry_wire.py +0 -0
  239. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_worker_transient_runtime.py +0 -0
  240. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_workflow_entry_arguments.py +0 -0
  241. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_workflow_entrypoint_validation.py +0 -0
  242. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_workflow_handler_validation.py +0 -0
  243. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_workflow_identity.py +0 -0
  244. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_workflow_result_timeout.py +0 -0
  245. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_workflow_streams.py +0 -0
  246. {durable_workflow-2.22.0 → durable_workflow-2.22.1}/tests/test_workflow_updates_conformance.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: durable-workflow
3
- Version: 2.22.0
3
+ Version: 2.22.1
4
4
  Summary: Python client and worker SDK for Durable Workflow Cloud and self-hosted Server
5
5
  Author: Durable Workflow Contributors
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "durable-workflow"
7
- version = "2.22.0"
7
+ version = "2.22.1"
8
8
  description = "Python client and worker SDK for Durable Workflow Cloud and self-hosted Server"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -79,8 +79,8 @@ durable-workflow-replay-conformance = "durable_workflow.replay_conformance:main"
79
79
  durable-workflow-workflow-updates-conformance = "durable_workflow.workflow_updates_conformance:main"
80
80
 
81
81
  [tool.durable-workflow]
82
- product-train = "2.22.0"
83
- registry-version = "2.22.0"
82
+ product-train = "2.22.1"
83
+ registry-version = "2.22.1"
84
84
  supported-server-versions = "2.8.0"
85
85
  supported-server-release-baselines = { "2" = "2.8.0", "3" = "3.0.0" }
86
86
  worker-protocol-version = "1.20"
@@ -18,7 +18,7 @@ https://github.com/temporalio/sdk-python/issues/1292.
18
18
 
19
19
  from __future__ import annotations
20
20
 
21
- from typing import Any
21
+ from typing import Any, TypedDict
22
22
 
23
23
  from .cancellation import CancellationContext, ScopedCancellationContext
24
24
 
@@ -810,6 +810,14 @@ class WorkflowEntryArgumentsMismatchError(DurableWorkflowError):
810
810
  )
811
811
 
812
812
 
813
+ class WorkflowSourceLocation(TypedDict):
814
+ """Authored suspension site using the source filename without its directory."""
815
+
816
+ function: str
817
+ file: str
818
+ line: int
819
+
820
+
813
821
  class NonDeterministicReplayError(DurableWorkflowError):
814
822
  """Current workflow code yielded a command shape that does not match history."""
815
823
 
@@ -835,6 +843,14 @@ class NonDeterministicReplayError(DurableWorkflowError):
835
843
  self.workflow_sequence = workflow_sequence
836
844
  self.expected_shape = expected_shape
837
845
  self.recorded_event_types = list(recorded_event_types)
846
+ self.workflow_source: WorkflowSourceLocation | None = None
847
+
848
+ def __str__(self) -> str:
849
+ message = super().__str__()
850
+ source = self.workflow_source
851
+ if source is None:
852
+ return message
853
+ return f"{message} Authored at {source['function']} ({source['file']}:{source['line']})."
838
854
 
839
855
 
840
856
  class UpdateFailed(InvalidArgument):
@@ -553,12 +553,14 @@ def _replay_case(replayer: Replayer, case: Mapping[str, Any]) -> CaseReport:
553
553
  workflow_type=workflow_type,
554
554
  )
555
555
  except NonDeterministicReplayError as exc:
556
- divergence = {
556
+ divergence: dict[str, Any] = {
557
557
  "workflow_sequence": exc.workflow_sequence,
558
558
  "expected_shape": exc.expected_shape,
559
559
  "recorded_event_types": list(exc.recorded_event_types),
560
560
  "message": str(exc),
561
561
  }
562
+ if exc.workflow_source is not None:
563
+ divergence["workflow_source"] = exc.workflow_source
562
564
  return CaseReport(
563
565
  id=case_id,
564
566
  status=STATUS_DRIFTED,
@@ -570,10 +572,7 @@ def _replay_case(replayer: Replayer, case: Mapping[str, Any]) -> CaseReport:
570
572
  expected=case.get("expected"),
571
573
  error={
572
574
  "class": type(exc).__name__,
573
- "message": str(exc),
574
- "workflow_sequence": exc.workflow_sequence,
575
- "expected_shape": exc.expected_shape,
576
- "recorded_event_types": list(exc.recorded_event_types),
575
+ **divergence,
577
576
  },
578
577
  )
579
578
  except (TypeError, ValueError, ChildWorkflowFailed, WorkflowFailed) as exc:
@@ -3091,7 +3091,7 @@ class Worker:
3091
3091
  workflow_task_attempt=attempt,
3092
3092
  message=f"workflow replay failed before update {update_id!r}: {exc}",
3093
3093
  failure_type=type(exc).__name__,
3094
- stack_trace=traceback.format_exc(),
3094
+ stack_trace=None,
3095
3095
  )
3096
3096
  except Exception as failure_error:
3097
3097
  log.warning("failed to report update replay failure: %s", failure_error)
@@ -3178,7 +3178,7 @@ class Worker:
3178
3178
  workflow_task_attempt=attempt,
3179
3179
  message=f"replay failed: {e}",
3180
3180
  failure_type=type(e).__name__,
3181
- stack_trace=traceback.format_exc(),
3181
+ stack_trace=None if isinstance(e, NonDeterministicReplayError) else traceback.format_exc(),
3182
3182
  **failure_details,
3183
3183
  )
3184
3184
  except Exception as fe:
@@ -33,6 +33,7 @@ from contextvars import ContextVar
33
33
  from copy import copy, deepcopy
34
34
  from dataclasses import dataclass, field, replace
35
35
  from datetime import datetime, timezone
36
+ from pathlib import PureWindowsPath
36
37
  from typing import Any, TypeVar, cast
37
38
 
38
39
  from . import replay_clock, serializer
@@ -74,6 +75,7 @@ from .errors import (
74
75
  WorkflowCancelled,
75
76
  WorkflowEntryArgumentsMismatchError,
76
77
  WorkflowPayloadDecodeError,
78
+ WorkflowSourceLocation,
77
79
  _cancellation_requested,
78
80
  validate_signal_name,
79
81
  )
@@ -3411,6 +3413,22 @@ class _ReplayState:
3411
3413
  context: WorkflowContext
3412
3414
 
3413
3415
 
3416
+ def _authored_source(generator: Any) -> WorkflowSourceLocation | None:
3417
+ location: WorkflowSourceLocation | None = None
3418
+ while inspect.isgenerator(generator) and inspect.getgeneratorstate(generator) == inspect.GEN_SUSPENDED:
3419
+ frame = generator.gi_frame
3420
+ if frame is None:
3421
+ break
3422
+ module = frame.f_globals.get("__name__", "")
3423
+ if isinstance(module, str) and not (module == "durable_workflow" or module.startswith("durable_workflow.")):
3424
+ filename = PureWindowsPath(frame.f_code.co_filename).name
3425
+ function = getattr(frame.f_code, "co_qualname", generator.__qualname__)
3426
+ if filename.endswith((".py", ".pyw")) and filename.isprintable() and function.isprintable():
3427
+ location = {"function": function, "file": filename, "line": frame.f_lineno}
3428
+ generator = generator.gi_yieldfrom
3429
+ return location
3430
+
3431
+
3414
3432
  def _consume_replay_result(state: _ReplayState, result: Any, *, business_clock: bool = False) -> Any:
3415
3433
  """Detach a handler value before discarded replay cleanup can mutate it."""
3416
3434
  if inspect.isawaitable(result):
@@ -8001,8 +8019,10 @@ def _replay_state(
8001
8019
  _advance_cancellation_clock(indexes)
8002
8020
 
8003
8021
  replay_token = _ACTIVE_WORKFLOW_REPLAY.set(ctx)
8022
+ matching_yield = False
8004
8023
  try:
8005
8024
  while True:
8025
+ matching_yield = False
8006
8026
  _consume_duplicate_version_markers()
8007
8027
  # Cursor-0 receivers are start-boundary events. Enter run() once
8008
8028
  # before applying them so workflow initialization observes the
@@ -8021,6 +8041,7 @@ def _replay_state(
8021
8041
  return _terminal_state(stop.value, include_pending=True)
8022
8042
  first = False
8023
8043
  _apply_due_receivers()
8044
+ matching_yield = True
8024
8045
  _validate_local_activity_policies(cmd)
8025
8046
  if recorded_failure_order is None and _ordinary_all_group(cmd):
8026
8047
  recorded_failure_order = _resolve_failure_order()
@@ -8841,7 +8862,11 @@ def _replay_state(
8841
8862
  if isinstance(exc, (NonDeterministicReplayError, InvalidWorkflowDefinition)):
8842
8863
  raise
8843
8864
  return _state(pending + [_fail_workflow_from_exception(exc)])
8844
- except (NonDeterministicReplayError, InvalidWorkflowDefinition):
8865
+ except NonDeterministicReplayError as exc:
8866
+ if matching_yield and exc.workflow_source is None:
8867
+ exc.workflow_source = _authored_source(gen)
8868
+ raise
8869
+ except InvalidWorkflowDefinition:
8845
8870
  raise
8846
8871
  except LocalActivityExecutionAborted:
8847
8872
  raise
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: durable-workflow
3
- Version: 2.22.0
3
+ Version: 2.22.1
4
4
  Summary: Python client and worker SDK for Durable Workflow Cloud and self-hosted Server
5
5
  Author: Durable Workflow Contributors
6
6
  License-Expression: MIT
@@ -79,6 +79,7 @@ from tests.test_replay_clock import (
79
79
  RedriveVisibilityCleanupWorkflow,
80
80
  RedriveVisibilityWorkflow,
81
81
  )
82
+ from tests.test_replay_verify import ReorderedWorkflow
82
83
  from tests.test_run_closed_settlement_replay import AllFailureClosedWorkflow, SelectionLoserAtCloseWorkflow
83
84
  from tests.test_signal_external_workflow import SenderWorkflow as ExternalSignalSenderWorkflow
84
85
  from tests.test_typed_values import TypedActivityResultsWorkflow
@@ -424,6 +425,7 @@ class BlankFailureWorkflow:
424
425
 
425
426
 
426
427
  WORKFLOWS = [
428
+ ReorderedWorkflow,
427
429
  ScheduleOriginWindowWorkflow,
428
430
  ExternalSignalSenderWorkflow,
429
431
  IntegrationSenderWorkflow,
@@ -3,6 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import hashlib
6
+ import inspect
6
7
  import json
7
8
  from pathlib import Path
8
9
  from typing import Any
@@ -58,6 +59,17 @@ class TimerDivergenceWorkflow:
58
59
  return "timer-fired"
59
60
 
60
61
 
62
+ @workflow.defn(name="replay-verify.reordered")
63
+ class ReorderedWorkflow:
64
+ def run(self, ctx: WorkflowContext): # type: ignore[no-untyped-def]
65
+ yield ctx.schedule_activity("prepare", [])
66
+ yield from self.final_steps(ctx)
67
+
68
+ def final_steps(self, ctx: WorkflowContext): # type: ignore[no-untyped-def]
69
+ yield ctx.start_timer(5)
70
+ yield ctx.schedule_activity("finish", [])
71
+
72
+
61
73
  @workflow.defn(name="replay-verify.activity-divergence")
62
74
  class ActivityDivergenceWorkflow:
63
75
  def run(self, ctx: WorkflowContext): # type: ignore[no-untyped-def]
@@ -123,11 +135,33 @@ def test_verify_replay_refuses_different_command_shape_with_actionable_diagnosti
123
135
  assert report.error["expected_shape"] == "timer"
124
136
  assert report.error["recorded_event_types"] == ["ActivityCompleted"]
125
137
  assert "current workflow yielded timer" in report.error["message"]
138
+ location = {
139
+ "function": "TimerDivergenceWorkflow.run",
140
+ "file": Path(__file__).name,
141
+ "line": inspect.getsourcelines(TimerDivergenceWorkflow.run)[1] + 1,
142
+ }
143
+ assert report.error["workflow_source"] == location
144
+ assert str(Path(__file__).resolve().parent) not in report.error["message"]
126
145
  assert report.divergence == {
127
146
  "workflow_sequence": 1,
128
147
  "expected_shape": "timer",
129
148
  "recorded_event_types": ["ActivityCompleted"],
130
149
  "message": report.error["message"],
150
+ "workflow_source": location,
151
+ }
152
+
153
+
154
+ def test_verify_replay_points_to_the_delegated_yield_after_a_step_reorder() -> None:
155
+ fixture_path = Path(__file__).parent / "fixtures" / "replay_regressions" / "authored-yield-step-reorder.json"
156
+ fixture = json.loads(fixture_path.read_text(encoding="utf-8"))
157
+ report = verify_replay(ReorderedWorkflow, fixture["history"], case_id=fixture["id"])
158
+ assert report.status == STATUS_DRIFTED
159
+ assert report.error is not None
160
+ assert report.error["workflow_sequence"] == 2
161
+ assert report.error["workflow_source"] == {
162
+ "function": ReorderedWorkflow.final_steps.__qualname__,
163
+ "file": Path(__file__).name,
164
+ "line": inspect.getsourcelines(ReorderedWorkflow.final_steps)[1] + 1,
131
165
  }
132
166
 
133
167
 
@@ -229,6 +263,9 @@ def test_verify_replay_refuses_removed_wait_condition_history() -> None:
229
263
  assert report.error is not None
230
264
  assert report.error["expected_shape"] == "complete workflow"
231
265
  assert report.error["recorded_event_types"] == ["ConditionWaitOpened"]
266
+ assert "workflow_source" not in report.error
267
+ assert report.divergence is not None
268
+ assert "workflow_source" not in report.divergence
232
269
 
233
270
 
234
271
  def test_verify_replay_refuses_wait_replacing_in_flight_activity() -> None:
@@ -2,6 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  import asyncio
4
4
  import contextlib
5
+ import inspect
5
6
  import json
6
7
  import logging
7
8
  import sys
@@ -1738,6 +1739,29 @@ class TestWorkflowTaskExecution:
1738
1739
  assert mock_client.complete_workflow_task.await_count == 2
1739
1740
  mock_client.fail_workflow_task.assert_not_called()
1740
1741
 
1742
+ @pytest.mark.asyncio
1743
+ async def test_workflow_task_reports_the_authored_yield_on_replay_drift(self, mock_client: AsyncMock) -> None:
1744
+ worker = Worker(mock_client, task_queue="q1", workflows=[TestWorkflow], activities=[])
1745
+ task = {
1746
+ "task_id": "t-replay-source",
1747
+ "workflow_type": "test-wf",
1748
+ "workflow_task_attempt": 2,
1749
+ "history_events": [
1750
+ {"event_type": "TimerScheduled", "payload": {"sequence": 1, "timer_kind": "durable_timer"}},
1751
+ ],
1752
+ "arguments": serializer.encode(["hello"], codec="avro"),
1753
+ "payload_codec": "avro",
1754
+ }
1755
+ assert await worker._run_workflow_task(task) is None
1756
+ mock_client.complete_workflow_task.assert_not_awaited()
1757
+ mock_client.fail_workflow_task.assert_awaited_once()
1758
+ failure = mock_client.fail_workflow_task.await_args.kwargs
1759
+ line = inspect.getsourcelines(TestWorkflow.run)[1] + 1
1760
+ assert failure["failure_type"] == "NonDeterministicReplayError"
1761
+ assert f"Authored at TestWorkflow.run ({Path(__file__).name}:{line})." in failure["message"]
1762
+ assert str(Path(__file__).resolve().parent) not in failure["message"]
1763
+ assert failure["stack_trace"] is None
1764
+
1741
1765
  @pytest.mark.asyncio
1742
1766
  async def test_workflow_task_definite_completion_rejection_fails_task(
1743
1767
  self, mock_client: AsyncMock