durable-workflow 2.15.0__tar.gz → 2.15.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.
Files changed (200) hide show
  1. {durable_workflow-2.15.0/src/durable_workflow.egg-info → durable_workflow-2.15.2}/PKG-INFO +1 -1
  2. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/pyproject.toml +3 -3
  3. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/worker.py +7 -1
  4. {durable_workflow-2.15.0 → durable_workflow-2.15.2/src/durable_workflow.egg-info}/PKG-INFO +1 -1
  5. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow.egg-info/SOURCES.txt +1 -0
  6. durable_workflow-2.15.2/tests/test_local_activity_backoff.py +49 -0
  7. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_replay_regression_corpus.py +48 -2
  8. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_sdk_metrics_contract.py +18 -0
  9. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/LICENSE +0 -0
  10. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/README.md +0 -0
  11. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/setup.cfg +0 -0
  12. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/__init__.py +0 -0
  13. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_activity_lease.py +0 -0
  14. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_activity_process.py +0 -0
  15. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_avro.py +0 -0
  16. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_cancellation_scope.py +0 -0
  17. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_cancellation_scope_history.py +0 -0
  18. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_condition_fingerprint.py +0 -0
  19. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_cooperative_cancellation.py +0 -0
  20. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_failure_reporting.py +0 -0
  21. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_metric_routes.py +0 -0
  22. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_poll_transport.py +0 -0
  23. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_prepared_local_activity.py +0 -0
  24. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_query_task_authority.py +0 -0
  25. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_sticky_workflow_cache.py +0 -0
  26. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/_typed_values.py +0 -0
  27. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/activity.py +0 -0
  28. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/auth_composition.py +0 -0
  29. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/cancellation.py +0 -0
  30. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/client.py +0 -0
  31. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/errors.py +0 -0
  32. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/external_storage.py +0 -0
  33. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/external_task_input.py +0 -0
  34. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/external_task_result.py +0 -0
  35. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/history_bundle_verify.py +0 -0
  36. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/interceptors.py +0 -0
  37. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/invocable.py +0 -0
  38. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/metrics.py +0 -0
  39. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/nexus.py +0 -0
  40. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/py.typed +0 -0
  41. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/python_conformance.py +0 -0
  42. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/replay_clock.py +0 -0
  43. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/replay_clock_math.py +0 -0
  44. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/replay_conformance.py +0 -0
  45. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/replay_verify.py +0 -0
  46. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/retry_policy.py +0 -0
  47. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/serializer.py +0 -0
  48. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/server_compatibility.json +0 -0
  49. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/sync.py +0 -0
  50. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/telemetry.py +0 -0
  51. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/telemetry_carrier.py +0 -0
  52. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/testing.py +0 -0
  53. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/worker_session.py +0 -0
  54. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/worker_status.py +0 -0
  55. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/workflow.py +0 -0
  56. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow/workflow_updates_conformance.py +0 -0
  57. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow.egg-info/dependency_links.txt +0 -0
  58. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow.egg-info/entry_points.txt +0 -0
  59. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow.egg-info/requires.txt +0 -0
  60. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/src/durable_workflow.egg-info/top_level.txt +0 -0
  61. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_activity_cancellation_policies.py +0 -0
  62. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_activity_context.py +0 -0
  63. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_activity_heartbeat_authority.py +0 -0
  64. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_activity_identity.py +0 -0
  65. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_activity_lease_authority.py +0 -0
  66. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_activity_lease_renewal.py +0 -0
  67. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_activity_lease_worker.py +0 -0
  68. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_activity_process.py +0 -0
  69. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_activity_retry_info.py +0 -0
  70. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_auth_composition.py +0 -0
  71. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_avro_value_benchmark.py +0 -0
  72. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_avro_value_protocol.py +0 -0
  73. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_business_replay_clock.py +0 -0
  74. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_business_replay_clock_child.py +0 -0
  75. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_business_replay_clock_parallel.py +0 -0
  76. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_business_replay_clock_redrive.py +0 -0
  77. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_business_replay_clock_sequence_claims.py +0 -0
  78. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cancellation_context.py +0 -0
  79. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cancellation_remaining_time.py +0 -0
  80. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cancellation_scope_admission.py +0 -0
  81. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cancellation_scope_authoring.py +0 -0
  82. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cancellation_scope_boundary.py +0 -0
  83. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cancellation_scope_opening.py +0 -0
  84. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_child_workflow_policies.py +0 -0
  85. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_ci_checkout.py +0 -0
  86. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_ci_integration_endpoint.py +0 -0
  87. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_client.py +0 -0
  88. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_client_iterators.py +0 -0
  89. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_client_telemetry.py +0 -0
  90. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_client_timeouts.py +0 -0
  91. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_codec_regression_corpus.py +0 -0
  92. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_committed_cancellation_scope_descendants.py +0 -0
  93. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_committed_cancellation_scope_groups.py +0 -0
  94. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_committed_cancellation_scope_history.py +0 -0
  95. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_committed_cancellation_scope_replay.py +0 -0
  96. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_condition_fingerprint.py +0 -0
  97. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_condition_occurrence_id.py +0 -0
  98. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_condition_replay_drift.py +0 -0
  99. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_control_plane_parity_fixtures.py +0 -0
  100. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cooperative_cancellation.py +0 -0
  101. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cooperative_cancellation_client.py +0 -0
  102. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cooperative_cancellation_worker.py +0 -0
  103. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_cooperative_remote_worker.py +0 -0
  104. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_docs_release_channel.py +0 -0
  105. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_docstring_cross_references.py +0 -0
  106. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_durable_selection.py +0 -0
  107. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_empty_callback_failure.py +0 -0
  108. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_errors.py +0 -0
  109. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_external_storage.py +0 -0
  110. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_external_task_input.py +0 -0
  111. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_external_task_result.py +0 -0
  112. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_failure_reporting.py +0 -0
  113. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_generator_lifecycle.py +0 -0
  114. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_golden_history_replay.py +0 -0
  115. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_history_bundle_pruned.py +0 -0
  116. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_history_bundle_schema2.py +0 -0
  117. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_history_bundle_verify.py +0 -0
  118. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_history_event_contract.py +0 -0
  119. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_invocable.py +0 -0
  120. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_local_failure_reporting.py +0 -0
  121. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_message_streams.py +0 -0
  122. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_metric_routes.py +0 -0
  123. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_metrics.py +0 -0
  124. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_nexus_durable_wait.py +0 -0
  125. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_nexus_namespace.py +0 -0
  126. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_nexus_wire.py +0 -0
  127. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_order_processing_example.py +0 -0
  128. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_parallel_completion_order_replay.py +0 -0
  129. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_parallel_saga_authoring.py +0 -0
  130. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_patch_history.py +0 -0
  131. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_pending_operation_replay.py +0 -0
  132. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_poll_failure_backoff.py +0 -0
  133. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_poll_transport.py +0 -0
  134. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_portal_source_split.py +0 -0
  135. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_prepared_local_activity_client.py +0 -0
  136. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_prepared_local_activity_groups.py +0 -0
  137. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_prepared_local_activity_policies.py +0 -0
  138. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_prepared_local_activity_worker.py +0 -0
  139. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_public_boundary_scanner.py +0 -0
  140. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_publish_workflow_isolation.py +0 -0
  141. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_pypi_project_surface.py +0 -0
  142. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_python_conformance.py +0 -0
  143. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_queries.py +0 -0
  144. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_query_task_authority.py +0 -0
  145. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_query_timeout_retry.py +0 -0
  146. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_readme_quickstart.py +0 -0
  147. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_redrive_call_ledger.py +0 -0
  148. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_redrive_replay.py +0 -0
  149. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_redrive_successor_evidence.py +0 -0
  150. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_registration_ambiguity.py +0 -0
  151. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_release_metadata.py +0 -0
  152. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_replay.py +0 -0
  153. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_replay_clock.py +0 -0
  154. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_replay_conformance.py +0 -0
  155. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_replay_verify.py +0 -0
  156. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_retry_policy.py +0 -0
  157. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_run_activities.py +0 -0
  158. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_run_cancellation_scope_replay.py +0 -0
  159. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_runtime_external_payload_transport.py +0 -0
  160. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_schedules.py +0 -0
  161. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_scoped_run_cancellation_context.py +0 -0
  162. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_search_attribute_replay_identity.py +0 -0
  163. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_serializer.py +0 -0
  164. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_signals.py +0 -0
  165. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_sleep.py +0 -0
  166. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_standalone_activity_client.py +0 -0
  167. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_sticky_execution.py +0 -0
  168. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_storage_admission.py +0 -0
  169. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_sync.py +0 -0
  170. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_sync_activities.py +0 -0
  171. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_telemetry.py +0 -0
  172. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_telemetry_carrier.py +0 -0
  173. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_testing_failures.py +0 -0
  174. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_testing_harness.py +0 -0
  175. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_testing_nexus.py +0 -0
  176. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_threaded_heartbeat_example.py +0 -0
  177. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_tls_trust.py +0 -0
  178. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_transport_diagnostics.py +0 -0
  179. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_typed_values.py +0 -0
  180. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_typed_workflow_values.py +0 -0
  181. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_update_signal_condition_replay.py +0 -0
  182. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_updates.py +0 -0
  183. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_wait_condition.py +0 -0
  184. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker.py +0 -0
  185. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker_deregistration.py +0 -0
  186. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker_observation.py +0 -0
  187. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker_session.py +0 -0
  188. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker_startup_buffered.py +0 -0
  189. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker_startup_raw.py +0 -0
  190. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker_startup_read_budget.py +0 -0
  191. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker_startup_snapshot.py +0 -0
  192. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker_status.py +0 -0
  193. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_worker_telemetry_wire.py +0 -0
  194. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_workflow_entry_arguments.py +0 -0
  195. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_workflow_entrypoint_validation.py +0 -0
  196. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_workflow_handler_validation.py +0 -0
  197. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_workflow_identity.py +0 -0
  198. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_workflow_result_timeout.py +0 -0
  199. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/tests/test_workflow_streams.py +0 -0
  200. {durable_workflow-2.15.0 → durable_workflow-2.15.2}/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.15.0
3
+ Version: 2.15.2
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.15.0"
7
+ version = "2.15.2"
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.15.0"
83
- registry-version = "2.15.0"
82
+ product-train = "2.15.2"
83
+ registry-version = "2.15.2"
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"
@@ -2565,7 +2565,10 @@ class Worker:
2565
2565
  or exception_type in non_retryable_types
2566
2566
  )
2567
2567
  retry = not non_retryable and attempt_number < max_attempts
2568
- backoff_seconds = backoff[attempt_number - 1] if retry and len(backoff) >= attempt_number else 0
2568
+ # Once the list runs out, keep the final entry, as Server-scheduled
2569
+ # activities do (.github#219). The list already carries the
2570
+ # policy's maximum-interval cap.
2571
+ backoff_seconds = backoff[min(attempt_number, len(backoff)) - 1] if retry and backoff else 0
2569
2572
  if (
2570
2573
  retry and command.schedule_to_close_timeout is not None
2571
2574
  and time.monotonic() - started_at + backoff_seconds >= command.schedule_to_close_timeout
@@ -4740,6 +4743,9 @@ class Worker:
4740
4743
  return True
4741
4744
 
4742
4745
  async def _run_until_activity_task(self, task: dict[str, Any]) -> None:
4746
+ # run_until() dispatches activities here instead of through
4747
+ # _dispatch_activity_task, so record the Server-computed age too (#188).
4748
+ self._record_task_schedule_to_start("activity", task)
4743
4749
  task_start = time.perf_counter()
4744
4750
  outcome = "error"
4745
4751
  self._activity_inflight += 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: durable-workflow
3
- Version: 2.15.0
3
+ Version: 2.15.2
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
@@ -112,6 +112,7 @@ tests/test_history_bundle_schema2.py
112
112
  tests/test_history_bundle_verify.py
113
113
  tests/test_history_event_contract.py
114
114
  tests/test_invocable.py
115
+ tests/test_local_activity_backoff.py
115
116
  tests/test_local_failure_reporting.py
116
117
  tests/test_message_streams.py
117
118
  tests/test_metric_routes.py
@@ -0,0 +1,49 @@
1
+ from __future__ import annotations
2
+
3
+ from unittest.mock import AsyncMock
4
+
5
+ import pytest
6
+
7
+ from durable_workflow import Client, Worker, activity
8
+ from durable_workflow import worker as worker_module
9
+ from durable_workflow.workflow import RecordLocalActivity
10
+
11
+
12
+ async def _run_failing_local_activity(
13
+ monkeypatch: pytest.MonkeyPatch, policy: dict[str, object],
14
+ ) -> tuple[list[float], list[dict[str, object]]]:
15
+ slept: list[float] = []
16
+
17
+ async def record_sleep(seconds: float) -> None:
18
+ slept.append(seconds)
19
+
20
+ monkeypatch.setattr(worker_module.asyncio, "sleep", record_sleep)
21
+
22
+ @activity.defn(name="tests.local.always-fails")
23
+ async def always_fails() -> None:
24
+ raise RuntimeError("still failing")
25
+
26
+ async with Client("http://test", worker_token="worker") as client:
27
+ worker = Worker(client, task_queue="queue", activities=[always_fails])
28
+ worker._renew_local_workflow_lease = AsyncMock() # type: ignore[method-assign]
29
+ command = RecordLocalActivity("tests.local.always-fails", [], retry_policy=policy)
30
+ await worker._execute_local_activity(
31
+ {"task_id": "task", "workflow_task_attempt": 1}, command, payload_codec="avro",
32
+ )
33
+ assert command.outcome is not None
34
+ return slept, list(command.outcome["attempts"])
35
+
36
+
37
+ async def test_local_retries_repeat_the_final_backoff_entry(monkeypatch: pytest.MonkeyPatch) -> None:
38
+ slept, attempts = await _run_failing_local_activity(
39
+ monkeypatch, {"max_attempts": 5, "backoff_seconds": [1, 2]},
40
+ )
41
+ # Before .github#219 the third and fourth retries used a zero delay.
42
+ assert slept == [1, 2, 2, 2]
43
+ assert [attempt.get("backoff_seconds") for attempt in attempts] == [1, 2, 2, 2, None]
44
+
45
+
46
+ async def test_local_retries_without_a_backoff_list_do_not_wait(monkeypatch: pytest.MonkeyPatch) -> None:
47
+ slept, attempts = await _run_failing_local_activity(monkeypatch, {"max_attempts": 3})
48
+ assert slept == []
49
+ assert len(attempts) == 3
@@ -10,7 +10,7 @@ from unittest.mock import AsyncMock
10
10
 
11
11
  import pytest
12
12
 
13
- from durable_workflow import Replayer, Worker, serializer, workflow
13
+ from durable_workflow import Replayer, Worker, activity, serializer, workflow
14
14
  from durable_workflow.client import PROTOCOL_VERSION, Client, WorkflowExecution, WorkflowStreamAppendItem
15
15
  from durable_workflow.errors import (
16
16
  DurableWorkflowError,
@@ -502,6 +502,47 @@ def _assert_matches(expected: Any, actual: Any, context: str) -> None:
502
502
  assert actual == expected, f"{context} expected {expected!r}, observed {actual!r}"
503
503
 
504
504
 
505
+
506
+ def _execute_local_activity_backoff(inputs: Any) -> dict[str, Any]:
507
+ """Run the real local-activity executor with an always-failing callback and
508
+ report the delays it waited between attempts (.github#219)."""
509
+ from durable_workflow import worker as worker_module
510
+ from durable_workflow.workflow import RecordLocalActivity
511
+
512
+ assert isinstance(inputs, list) and len(inputs) == 1 and isinstance(inputs[0], dict)
513
+ policy = inputs[0]["retry_policy"]
514
+
515
+ @activity.defn(name="tests.replay.local-always-fails")
516
+ async def always_fails() -> None:
517
+ raise RuntimeError("still failing")
518
+
519
+ async def run() -> dict[str, Any]:
520
+ slept: list[float] = []
521
+ original_sleep = worker_module.asyncio.sleep
522
+
523
+ async def record_sleep(seconds: float) -> None:
524
+ slept.append(seconds)
525
+
526
+ worker_module.asyncio.sleep = record_sleep # type: ignore[assignment]
527
+ try:
528
+ async with Client("http://regression-corpus", worker_token="worker") as client:
529
+ worker = Worker(client, task_queue="queue", activities=[always_fails])
530
+ worker._renew_local_workflow_lease = AsyncMock() # type: ignore[method-assign]
531
+ command = RecordLocalActivity("tests.replay.local-always-fails", [], retry_policy=policy)
532
+ await worker._execute_local_activity(
533
+ {"task_id": "task", "workflow_task_attempt": 1}, command, payload_codec="avro",
534
+ )
535
+ finally:
536
+ worker_module.asyncio.sleep = original_sleep # type: ignore[assignment]
537
+ assert command.outcome is not None
538
+ return {
539
+ "type": "local_activity_backoff",
540
+ "slept_seconds": slept,
541
+ "attempt_backoff_seconds": [attempt.get("backoff_seconds") for attempt in command.outcome["attempts"]],
542
+ }
543
+
544
+ return asyncio.run(run())
545
+
505
546
  def _execute_fixture(fixture: dict[str, Any]) -> list[dict[str, Any]]:
506
547
  assert fixture.get("fixture_schema") == FIXTURE_SCHEMA
507
548
  assert "python" in fixture.get("bindings", [])
@@ -512,6 +553,11 @@ def _execute_fixture(fixture: dict[str, Any]) -> list[dict[str, Any]]:
512
553
  assert isinstance(workflow_type, str) and workflow_type
513
554
  if workflow_type == "sdk.observed-worker-replay":
514
555
  return _execute_observed_worker_replay(fixture)
556
+ if workflow_type == "sdk.local-activity-backoff":
557
+ commands = [_execute_local_activity_backoff(workflow.get("input"))]
558
+ _assert_matches(fixture["command_sequence"], commands, f"{fixture['id']}.command_sequence")
559
+ _assert_matches(fixture["expected"], {"command_sequence": commands}, f"{fixture['id']}.expected")
560
+ return commands
515
561
  if workflow_type in {
516
562
  "sdk.query-task-dispatch", "sdk.generator-query-task-dispatch", "sdk.generator-side-effect-query-task-dispatch",
517
563
  }:
@@ -735,7 +781,7 @@ def test_checked_in_replay_regression_corpus_uses_official_replayer(
735
781
  assert isinstance(expected, dict) and expected
736
782
  if workflow.get("type") in {
737
783
  "sdk.replay-conformance-report", "sdk.query-task-dispatch", "sdk.generator-query-task-dispatch",
738
- "sdk.generator-side-effect-query-task-dispatch", "sdk.observed-worker-replay",
784
+ "sdk.generator-side-effect-query-task-dispatch", "sdk.observed-worker-replay", "sdk.local-activity-backoff",
739
785
  }:
740
786
  _execute_fixture(fixture)
741
787
  return
@@ -228,6 +228,24 @@ async def test_dispatch_records_server_ready_age_before_execution(
228
228
  assert assert_contract(Recorder(recorder.calls[1:]), duration=19.0) == {"worker_task"}
229
229
 
230
230
 
231
+ async def test_run_until_activity_records_server_ready_age(monkeypatch: pytest.MonkeyPatch) -> None:
232
+ # run_until() runs activities through _run_until_activity_task, not
233
+ # _dispatch_activity_task; both must record schedule-to-start (#188).
234
+ recorder = Recorder()
235
+ client = Client("https://runtime.example", metrics=recorder)
236
+ client._cluster_info = {"worker_protocol": {"server_capabilities": {"claimed_task_ready_age": True}}}
237
+ worker = Worker(client, task_queue="orders")
238
+
239
+ async def execute(_: object) -> object:
240
+ return "completed"
241
+
242
+ monkeypatch.setattr(worker, "_run_activity_task", execute)
243
+ await worker._run_until_activity_task({"ready_age_ms": 1250})
244
+ assert recorder.calls[0] == (
245
+ "record", SCHEDULE_TO_START, 1.25, {"task_kind": "activity", "task_queue": "orders"},
246
+ )
247
+
248
+
231
249
  @pytest.mark.parametrize("kind", ["workflow", "activity"])
232
250
  @pytest.mark.parametrize("value", [None, True, False, -1, 9007199254740992, 1.0, float("nan"),
233
251
  float("inf"), "private-value", {"private-key": "private-value"}, []])