hatchet-sdk 0.44.0__tar.gz → 1.22.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 (385) hide show
  1. hatchet_sdk-1.22.2/PKG-INFO +85 -0
  2. hatchet_sdk-1.22.2/README.md +51 -0
  3. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/__init__.py +99 -45
  4. hatchet_sdk-1.22.2/hatchet_sdk/client.py +57 -0
  5. hatchet_sdk-1.22.2/hatchet_sdk/clients/admin.py +481 -0
  6. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/dispatcher/action_listener.py +122 -171
  7. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/dispatcher/dispatcher.py +101 -70
  8. hatchet_sdk-1.22.2/hatchet_sdk/clients/event_ts.py +76 -0
  9. hatchet_sdk-1.22.2/hatchet_sdk/clients/events.py +297 -0
  10. hatchet_sdk-1.22.2/hatchet_sdk/clients/listeners/durable_event_listener.py +129 -0
  11. hatchet_sdk-1.22.2/hatchet_sdk/clients/listeners/pooled_listener.py +261 -0
  12. {hatchet_sdk-0.44.0/hatchet_sdk/clients → hatchet_sdk-1.22.2/hatchet_sdk/clients/listeners}/run_event_listener.py +107 -107
  13. hatchet_sdk-1.22.2/hatchet_sdk/clients/listeners/workflow_listener.py +70 -0
  14. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/__init__.py +130 -0
  15. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/__init__.py +5 -0
  16. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/api_token_api.py +24 -24
  17. hatchet_sdk-0.44.0/hatchet_sdk/clients/rest/api/log_api.py → hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/api/cel_api.py +87 -200
  18. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/default_api.py +286 -56
  19. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/api/event_api.py +3960 -0
  20. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/api/filter_api.py +1644 -0
  21. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/github_api.py +8 -8
  22. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/healthcheck_api.py +34 -22
  23. hatchet_sdk-0.44.0/hatchet_sdk/clients/rest/api/workflow_runs_api.py → hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/api/log_api.py +344 -165
  24. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/metadata_api.py +24 -24
  25. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/rate_limits_api.py +8 -8
  26. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/slack_api.py +16 -16
  27. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/sns_api.py +24 -24
  28. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/step_run_api.py +56 -56
  29. hatchet_sdk-0.44.0/hatchet_sdk/clients/rest/api/event_api.py → hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/api/task_api.py +596 -834
  30. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/tenant_api.py +1529 -376
  31. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/user_api.py +105 -96
  32. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/api/webhook_api.py +1866 -0
  33. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/worker_api.py +24 -24
  34. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/workflow_api.py +2539 -1218
  35. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api/workflow_run_api.py +48 -48
  36. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/api/workflow_runs_api.py +2819 -0
  37. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api_client.py +21 -10
  38. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/api_response.py +3 -2
  39. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/configuration.py +23 -4
  40. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/exceptions.py +21 -0
  41. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/__init__.py +125 -0
  42. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/concurrency_stat.py +91 -0
  43. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/create_cron_workflow_trigger_request.py +4 -1
  44. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/create_event_request.py +16 -2
  45. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/create_tenant_request.py +32 -2
  46. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/cron_workflows.py +4 -1
  47. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/event_workflow_run_summary.py +5 -0
  48. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/info_get_version200_response.py +83 -0
  49. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/job_run_status.py +1 -0
  50. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/registered_workflow.py +86 -0
  51. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/schedule_workflow_run_request.py +9 -2
  52. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/scheduled_workflows.py +3 -0
  53. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/scheduled_workflows_bulk_delete_filter.py +108 -0
  54. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/scheduled_workflows_bulk_delete_request.py +105 -0
  55. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/scheduled_workflows_bulk_delete_response.py +109 -0
  56. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/scheduled_workflows_bulk_error.py +86 -0
  57. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/scheduled_workflows_bulk_update_item.py +87 -0
  58. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/scheduled_workflows_bulk_update_request.py +107 -0
  59. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/scheduled_workflows_bulk_update_response.py +109 -0
  60. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/semaphore_slots.py +1 -1
  61. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step_run_status.py +1 -0
  62. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/task_stat.py +105 -0
  63. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/task_status_stat.py +107 -0
  64. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant.py +10 -0
  65. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/tenant_environment.py +38 -0
  66. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_resource.py +3 -0
  67. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_step_run_queue_metrics.py +2 -2
  68. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/tenant_ui_version.py +37 -0
  69. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/tenant_version.py +37 -0
  70. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/update_cron_workflow_trigger_request.py +83 -0
  71. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/update_scheduled_workflow_run_request.py +84 -0
  72. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/update_tenant_member_request.py +85 -0
  73. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/update_tenant_request.py +7 -0
  74. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_cancel_task_request.py +104 -0
  75. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_cancelled_tasks.py +87 -0
  76. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_cel_debug_error_response.py +93 -0
  77. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_cel_debug_request.py +108 -0
  78. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_cel_debug_response.py +100 -0
  79. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_cel_debug_response_status.py +37 -0
  80. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_cel_debug_success_response.py +102 -0
  81. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_create_filter_request.py +99 -0
  82. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_create_webhook_request.py +215 -0
  83. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_create_webhook_request_api_key.py +126 -0
  84. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_create_webhook_request_api_key_all_of_auth_type.py +82 -0
  85. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_create_webhook_request_base.py +98 -0
  86. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_create_webhook_request_basic_auth.py +126 -0
  87. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_create_webhook_request_basic_auth_all_of_auth_type.py +82 -0
  88. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_create_webhook_request_hmac.py +126 -0
  89. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_create_webhook_request_hmac_all_of_auth_type.py +82 -0
  90. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_dag_children.py +102 -0
  91. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_event.py +191 -0
  92. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_event_list.py +110 -0
  93. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_event_triggered_run.py +94 -0
  94. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_event_workflow_run_summary.py +101 -0
  95. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_filter.py +134 -0
  96. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_filter_list.py +110 -0
  97. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_log_line.py +113 -0
  98. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_log_line_level.py +39 -0
  99. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_log_line_list.py +110 -0
  100. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_replay_task_request.py +104 -0
  101. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_replayed_tasks.py +87 -0
  102. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task.py +174 -0
  103. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_event.py +130 -0
  104. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_event_list.py +110 -0
  105. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_event_type.py +56 -0
  106. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_filter.py +106 -0
  107. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_point_metric.py +92 -0
  108. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_point_metrics.py +100 -0
  109. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_run_metric.py +88 -0
  110. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_run_status.py +40 -0
  111. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_status.py +40 -0
  112. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_summary.py +255 -0
  113. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_summary_list.py +110 -0
  114. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_timing.py +178 -0
  115. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_task_timing_list.py +110 -0
  116. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_trigger_workflow_run_request.py +104 -0
  117. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_update_filter_request.py +98 -0
  118. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_update_webhook_request.py +86 -0
  119. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook.py +126 -0
  120. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook_api_key_auth.py +90 -0
  121. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook_auth_type.py +38 -0
  122. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook_basic_auth.py +86 -0
  123. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook_hmac_algorithm.py +39 -0
  124. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook_hmac_auth.py +115 -0
  125. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook_hmac_encoding.py +38 -0
  126. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook_list.py +110 -0
  127. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook_receive200_response.py +83 -0
  128. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_webhook_source_name.py +40 -0
  129. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_workflow_run.py +176 -0
  130. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_workflow_run_details.py +155 -0
  131. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_workflow_run_display_name.py +98 -0
  132. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_workflow_run_display_name_list.py +114 -0
  133. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/v1_workflow_type.py +37 -0
  134. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/worker.py +22 -0
  135. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow.py +5 -0
  136. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/models/workflow_run_shape_item_for_workflow_run_details.py +104 -0
  137. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_run_status.py +1 -0
  138. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_runs_metrics.py +5 -1
  139. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_runs_metrics_counts.py +3 -0
  140. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_version.py +5 -0
  141. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/rest.py +247 -0
  142. hatchet_sdk-1.22.2/hatchet_sdk/clients/rest/tenacity_utils.py +50 -0
  143. hatchet_sdk-1.22.2/hatchet_sdk/clients/v1/api_client.py +44 -0
  144. hatchet_sdk-1.22.2/hatchet_sdk/conditions.py +157 -0
  145. hatchet_sdk-1.22.2/hatchet_sdk/config.py +188 -0
  146. hatchet_sdk-1.22.2/hatchet_sdk/connection.py +90 -0
  147. hatchet_sdk-1.22.2/hatchet_sdk/context/context.py +481 -0
  148. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/context/worker_context.py +4 -7
  149. hatchet_sdk-1.22.2/hatchet_sdk/contracts/dispatcher_pb2.py +112 -0
  150. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/contracts/dispatcher_pb2.pyi +26 -11
  151. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/contracts/dispatcher_pb2_grpc.py +4 -4
  152. hatchet_sdk-1.22.2/hatchet_sdk/contracts/events_pb2.py +56 -0
  153. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/contracts/events_pb2.pyi +22 -9
  154. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/contracts/events_pb2_grpc.py +4 -4
  155. hatchet_sdk-1.22.2/hatchet_sdk/contracts/v1/dispatcher_pb2.py +46 -0
  156. hatchet_sdk-1.22.2/hatchet_sdk/contracts/v1/dispatcher_pb2.pyi +39 -0
  157. hatchet_sdk-1.22.2/hatchet_sdk/contracts/v1/dispatcher_pb2_grpc.py +140 -0
  158. hatchet_sdk-1.22.2/hatchet_sdk/contracts/v1/shared/condition_pb2.py +49 -0
  159. hatchet_sdk-1.22.2/hatchet_sdk/contracts/v1/shared/condition_pb2.pyi +73 -0
  160. hatchet_sdk-1.22.2/hatchet_sdk/contracts/v1/shared/condition_pb2_grpc.py +24 -0
  161. hatchet_sdk-1.22.2/hatchet_sdk/contracts/v1/workflows_pb2.py +79 -0
  162. hatchet_sdk-1.22.2/hatchet_sdk/contracts/v1/workflows_pb2.pyi +249 -0
  163. hatchet_sdk-1.22.2/hatchet_sdk/contracts/v1/workflows_pb2_grpc.py +229 -0
  164. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/contracts/workflows_pb2.py +37 -37
  165. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/contracts/workflows_pb2.pyi +11 -6
  166. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/contracts/workflows_pb2_grpc.py +4 -4
  167. hatchet_sdk-1.22.2/hatchet_sdk/exceptions.py +173 -0
  168. hatchet_sdk-1.22.2/hatchet_sdk/features/cel.py +102 -0
  169. hatchet_sdk-1.22.2/hatchet_sdk/features/cron.py +282 -0
  170. hatchet_sdk-1.22.2/hatchet_sdk/features/filters.py +215 -0
  171. hatchet_sdk-1.22.2/hatchet_sdk/features/logs.py +59 -0
  172. hatchet_sdk-1.22.2/hatchet_sdk/features/metrics.py +169 -0
  173. hatchet_sdk-1.22.2/hatchet_sdk/features/rate_limits.py +70 -0
  174. hatchet_sdk-1.22.2/hatchet_sdk/features/runs.py +854 -0
  175. hatchet_sdk-1.22.2/hatchet_sdk/features/scheduled.py +444 -0
  176. hatchet_sdk-1.22.2/hatchet_sdk/features/stubs.py +99 -0
  177. hatchet_sdk-1.22.2/hatchet_sdk/features/tenant.py +36 -0
  178. hatchet_sdk-1.22.2/hatchet_sdk/features/workers.py +90 -0
  179. hatchet_sdk-1.22.2/hatchet_sdk/features/workflows.py +142 -0
  180. hatchet_sdk-1.22.2/hatchet_sdk/hatchet.py +691 -0
  181. hatchet_sdk-1.22.2/hatchet_sdk/labels.py +8 -0
  182. hatchet_sdk-1.22.2/hatchet_sdk/metadata.py +2 -0
  183. hatchet_sdk-1.22.2/hatchet_sdk/opentelemetry/instrumentor.py +727 -0
  184. hatchet_sdk-1.22.2/hatchet_sdk/py.typed +0 -0
  185. hatchet_sdk-1.22.2/hatchet_sdk/rate_limit.py +94 -0
  186. hatchet_sdk-1.22.2/hatchet_sdk/runnables/action.py +121 -0
  187. hatchet_sdk-1.22.2/hatchet_sdk/runnables/contextvars.py +40 -0
  188. hatchet_sdk-1.22.2/hatchet_sdk/runnables/task.py +562 -0
  189. hatchet_sdk-1.22.2/hatchet_sdk/runnables/types.py +199 -0
  190. hatchet_sdk-1.22.2/hatchet_sdk/runnables/workflow.py +1509 -0
  191. hatchet_sdk-1.22.2/hatchet_sdk/token.py +31 -0
  192. hatchet_sdk-1.22.2/hatchet_sdk/utils/aio.py +21 -0
  193. hatchet_sdk-1.22.2/hatchet_sdk/utils/datetimes.py +35 -0
  194. hatchet_sdk-1.22.2/hatchet_sdk/utils/iterables.py +9 -0
  195. hatchet_sdk-1.22.2/hatchet_sdk/utils/opentelemetry.py +43 -0
  196. hatchet_sdk-1.22.2/hatchet_sdk/utils/proto_enums.py +47 -0
  197. hatchet_sdk-1.22.2/hatchet_sdk/utils/serde.py +60 -0
  198. hatchet_sdk-1.22.2/hatchet_sdk/utils/timedelta_to_expression.py +23 -0
  199. hatchet_sdk-1.22.2/hatchet_sdk/utils/typing.py +51 -0
  200. hatchet_sdk-1.22.2/hatchet_sdk/worker/__init__.py +0 -0
  201. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/worker/action_listener_process.py +126 -90
  202. hatchet_sdk-1.22.2/hatchet_sdk/worker/runner/run_loop_manager.py +129 -0
  203. hatchet_sdk-1.22.2/hatchet_sdk/worker/runner/runner.py +536 -0
  204. hatchet_sdk-1.22.2/hatchet_sdk/worker/runner/utils/capture_logs.py +164 -0
  205. hatchet_sdk-1.22.2/hatchet_sdk/worker/worker.py +512 -0
  206. hatchet_sdk-1.22.2/hatchet_sdk/workflow_run.py +89 -0
  207. hatchet_sdk-1.22.2/pyproject.toml +258 -0
  208. hatchet_sdk-0.44.0/PKG-INFO +0 -41
  209. hatchet_sdk-0.44.0/README.md +0 -3
  210. hatchet_sdk-0.44.0/hatchet_sdk/client.py +0 -119
  211. hatchet_sdk-0.44.0/hatchet_sdk/clients/admin.py +0 -606
  212. hatchet_sdk-0.44.0/hatchet_sdk/clients/event_ts.py +0 -28
  213. hatchet_sdk-0.44.0/hatchet_sdk/clients/events.py +0 -220
  214. hatchet_sdk-0.44.0/hatchet_sdk/clients/rest/rest.py +0 -187
  215. hatchet_sdk-0.44.0/hatchet_sdk/clients/rest/tenacity_utils.py +0 -39
  216. hatchet_sdk-0.44.0/hatchet_sdk/clients/rest_client.py +0 -611
  217. hatchet_sdk-0.44.0/hatchet_sdk/clients/workflow_listener.py +0 -273
  218. hatchet_sdk-0.44.0/hatchet_sdk/connection.py +0 -64
  219. hatchet_sdk-0.44.0/hatchet_sdk/context/__init__.py +0 -1
  220. hatchet_sdk-0.44.0/hatchet_sdk/context/context.py +0 -405
  221. hatchet_sdk-0.44.0/hatchet_sdk/contracts/dispatcher_pb2.py +0 -112
  222. hatchet_sdk-0.44.0/hatchet_sdk/contracts/events_pb2.py +0 -56
  223. hatchet_sdk-0.44.0/hatchet_sdk/features/cron.py +0 -286
  224. hatchet_sdk-0.44.0/hatchet_sdk/features/scheduled.py +0 -248
  225. hatchet_sdk-0.44.0/hatchet_sdk/hatchet.py +0 -310
  226. hatchet_sdk-0.44.0/hatchet_sdk/labels.py +0 -10
  227. hatchet_sdk-0.44.0/hatchet_sdk/loader.py +0 -246
  228. hatchet_sdk-0.44.0/hatchet_sdk/metadata.py +0 -2
  229. hatchet_sdk-0.44.0/hatchet_sdk/rate_limit.py +0 -126
  230. hatchet_sdk-0.44.0/hatchet_sdk/semver.py +0 -30
  231. hatchet_sdk-0.44.0/hatchet_sdk/token.py +0 -27
  232. hatchet_sdk-0.44.0/hatchet_sdk/utils/aio_utils.py +0 -137
  233. hatchet_sdk-0.44.0/hatchet_sdk/utils/serialization.py +0 -18
  234. hatchet_sdk-0.44.0/hatchet_sdk/utils/tracing.py +0 -70
  235. hatchet_sdk-0.44.0/hatchet_sdk/utils/types.py +0 -8
  236. hatchet_sdk-0.44.0/hatchet_sdk/utils/typing.py +0 -12
  237. hatchet_sdk-0.44.0/hatchet_sdk/v2/callable.py +0 -202
  238. hatchet_sdk-0.44.0/hatchet_sdk/v2/concurrency.py +0 -47
  239. hatchet_sdk-0.44.0/hatchet_sdk/v2/hatchet.py +0 -224
  240. hatchet_sdk-0.44.0/hatchet_sdk/worker/__init__.py +0 -1
  241. hatchet_sdk-0.44.0/hatchet_sdk/worker/runner/run_loop_manager.py +0 -112
  242. hatchet_sdk-0.44.0/hatchet_sdk/worker/runner/runner.py +0 -492
  243. hatchet_sdk-0.44.0/hatchet_sdk/worker/runner/utils/capture_logs.py +0 -81
  244. hatchet_sdk-0.44.0/hatchet_sdk/worker/runner/utils/error_with_traceback.py +0 -6
  245. hatchet_sdk-0.44.0/hatchet_sdk/worker/worker.py +0 -392
  246. hatchet_sdk-0.44.0/hatchet_sdk/workflow.py +0 -261
  247. hatchet_sdk-0.44.0/hatchet_sdk/workflow_run.py +0 -57
  248. hatchet_sdk-0.44.0/pyproject.toml +0 -124
  249. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/accept_invite_request.py +0 -0
  250. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/api_error.py +0 -0
  251. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/api_errors.py +0 -0
  252. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/api_meta.py +0 -0
  253. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/api_meta_auth.py +0 -0
  254. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/api_meta_integration.py +0 -0
  255. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/api_meta_posthog.py +0 -0
  256. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/api_resource_meta.py +0 -0
  257. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/api_token.py +0 -0
  258. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/bulk_create_event_request.py +0 -0
  259. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/bulk_create_event_response.py +0 -0
  260. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/cancel_event_request.py +0 -0
  261. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/cancel_step_run_request.py +0 -0
  262. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/concurrency_limit_strategy.py +0 -0
  263. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/create_api_token_request.py +0 -0
  264. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/create_api_token_response.py +0 -0
  265. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/create_pull_request_from_step_run.py +0 -0
  266. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/create_sns_integration_request.py +0 -0
  267. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/create_tenant_alert_email_group_request.py +0 -0
  268. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/create_tenant_invite_request.py +0 -0
  269. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/cron_workflows_list.py +0 -0
  270. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/cron_workflows_method.py +0 -0
  271. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/cron_workflows_order_by_field.py +0 -0
  272. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/event.py +0 -0
  273. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/event_data.py +0 -0
  274. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/event_key_list.py +0 -0
  275. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/event_list.py +0 -0
  276. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/event_order_by_direction.py +0 -0
  277. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/event_order_by_field.py +0 -0
  278. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/event_update_cancel200_response.py +0 -0
  279. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/events.py +0 -0
  280. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/get_step_run_diff_response.py +0 -0
  281. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/github_app_installation.py +0 -0
  282. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/github_branch.py +0 -0
  283. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/github_repo.py +0 -0
  284. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/job.py +0 -0
  285. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/job_run.py +0 -0
  286. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/link_github_repository_request.py +0 -0
  287. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/list_api_tokens_response.py +0 -0
  288. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/list_github_app_installations_response.py +0 -0
  289. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/list_pull_requests_response.py +0 -0
  290. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/list_slack_webhooks.py +0 -0
  291. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/list_sns_integrations.py +0 -0
  292. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/log_line.py +0 -0
  293. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/log_line_level.py +0 -0
  294. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/log_line_list.py +0 -0
  295. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/log_line_order_by_direction.py +0 -0
  296. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/log_line_order_by_field.py +0 -0
  297. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/pagination_response.py +0 -0
  298. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/pull_request.py +0 -0
  299. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/pull_request_state.py +0 -0
  300. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/queue_metrics.py +0 -0
  301. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/rate_limit.py +0 -0
  302. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/rate_limit_list.py +0 -0
  303. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/rate_limit_order_by_direction.py +0 -0
  304. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/rate_limit_order_by_field.py +0 -0
  305. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/recent_step_runs.py +0 -0
  306. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/reject_invite_request.py +0 -0
  307. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/replay_event_request.py +0 -0
  308. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/replay_workflow_runs_request.py +0 -0
  309. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/replay_workflow_runs_response.py +0 -0
  310. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/rerun_step_run_request.py +0 -0
  311. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/scheduled_run_status.py +0 -0
  312. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/scheduled_workflows_list.py +0 -0
  313. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/scheduled_workflows_method.py +0 -0
  314. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/scheduled_workflows_order_by_field.py +0 -0
  315. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/slack_webhook.py +0 -0
  316. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/sns_integration.py +0 -0
  317. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step.py +0 -0
  318. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step_run.py +0 -0
  319. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step_run_archive.py +0 -0
  320. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step_run_archive_list.py +0 -0
  321. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step_run_diff.py +0 -0
  322. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step_run_event.py +0 -0
  323. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step_run_event_list.py +0 -0
  324. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step_run_event_reason.py +0 -0
  325. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/step_run_event_severity.py +0 -0
  326. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_alert_email_group.py +0 -0
  327. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_alert_email_group_list.py +0 -0
  328. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_alerting_settings.py +0 -0
  329. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_invite.py +0 -0
  330. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_invite_list.py +0 -0
  331. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_list.py +0 -0
  332. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_member.py +0 -0
  333. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_member_list.py +0 -0
  334. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_member_role.py +0 -0
  335. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_queue_metrics.py +0 -0
  336. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_resource_limit.py +0 -0
  337. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/tenant_resource_policy.py +0 -0
  338. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/trigger_workflow_run_request.py +0 -0
  339. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/update_tenant_alert_email_group_request.py +0 -0
  340. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/update_tenant_invite_request.py +0 -0
  341. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/update_worker_request.py +0 -0
  342. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/user.py +0 -0
  343. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/user_change_password_request.py +0 -0
  344. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/user_login_request.py +0 -0
  345. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/user_register_request.py +0 -0
  346. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/user_tenant_memberships_list.py +0 -0
  347. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/user_tenant_public.py +0 -0
  348. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/webhook_worker.py +0 -0
  349. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/webhook_worker_create_request.py +0 -0
  350. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/webhook_worker_create_response.py +0 -0
  351. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/webhook_worker_created.py +0 -0
  352. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/webhook_worker_list_response.py +0 -0
  353. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/webhook_worker_request.py +0 -0
  354. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/webhook_worker_request_list_response.py +0 -0
  355. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/webhook_worker_request_method.py +0 -0
  356. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/worker_label.py +0 -0
  357. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/worker_list.py +0 -0
  358. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/worker_runtime_info.py +0 -0
  359. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/worker_runtime_sdks.py +0 -0
  360. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/worker_type.py +0 -0
  361. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_concurrency.py +0 -0
  362. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_deployment_config.py +0 -0
  363. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_kind.py +0 -0
  364. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_list.py +0 -0
  365. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_metrics.py +0 -0
  366. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_run.py +0 -0
  367. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_run_cancel200_response.py +0 -0
  368. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_run_list.py +0 -0
  369. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_run_order_by_direction.py +0 -0
  370. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_run_order_by_field.py +0 -0
  371. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_run_shape.py +0 -0
  372. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_run_triggered_by.py +0 -0
  373. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_runs_cancel_request.py +0 -0
  374. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_tag.py +0 -0
  375. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_trigger_cron_ref.py +0 -0
  376. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_trigger_event_ref.py +0 -0
  377. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_triggers.py +0 -0
  378. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_update_request.py +0 -0
  379. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_version_concurrency.py +0 -0
  380. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_version_definition.py +0 -0
  381. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_version_meta.py +0 -0
  382. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/clients/rest/models/workflow_workers_count.py +0 -0
  383. /hatchet_sdk-0.44.0/hatchet_sdk/py.typed → /hatchet_sdk-1.22.2/hatchet_sdk/context/__init__.py +0 -0
  384. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/logger.py +0 -0
  385. {hatchet_sdk-0.44.0 → hatchet_sdk-1.22.2}/hatchet_sdk/utils/backoff.py +0 -0
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.1
2
+ Name: hatchet-sdk
3
+ Version: 1.22.2
4
+ Summary: This is the official Python SDK for Hatchet, a distributed, fault-tolerant task queue. The SDK allows you to easily integrate Hatchet's task scheduling and workflow orchestration capabilities into your Python applications.
5
+ License: MIT
6
+ Author: Alexander Belanger
7
+ Author-email: alexander@hatchet.run
8
+ Requires-Python: >=3.10,<4.0
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Provides-Extra: otel
15
+ Provides-Extra: v0-sdk
16
+ Requires-Dist: aiohttp (>=3.10.5,<4.0.0)
17
+ Requires-Dist: grpcio (>=1.76.0,<2.0.0)
18
+ Requires-Dist: grpcio-tools (>=1.76.0,<2.0.0)
19
+ Requires-Dist: opentelemetry-api (>=1.28.0,<2.0.0) ; extra == "otel"
20
+ Requires-Dist: opentelemetry-distro (>=0.49b0) ; extra == "otel"
21
+ Requires-Dist: opentelemetry-exporter-otlp (>=1.28.0,<2.0.0) ; extra == "otel"
22
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.28.0,<2.0.0) ; extra == "otel"
23
+ Requires-Dist: opentelemetry-instrumentation (>=0.49b0) ; extra == "otel"
24
+ Requires-Dist: opentelemetry-sdk (>=1.28.0,<2.0.0) ; extra == "otel"
25
+ Requires-Dist: prometheus-client (>=0.21.1)
26
+ Requires-Dist: protobuf (>=6.30.0,<7.0.0)
27
+ Requires-Dist: pydantic (>=2.6.3,<3.0.0)
28
+ Requires-Dist: pydantic-settings (>=2.7.1,<3.0.0)
29
+ Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
30
+ Requires-Dist: tenacity (>=8.4.1)
31
+ Requires-Dist: urllib3 (>=2.6.0,<3.0.0)
32
+ Description-Content-Type: text/markdown
33
+
34
+ # Hatchet Python SDK
35
+
36
+ <div align="center">
37
+
38
+ [![PyPI version](https://badge.fury.io/py/hatchet-sdk.svg)](https://badge.fury.io/py/hatchet-sdk)
39
+ [![Documentation](https://img.shields.io/badge/docs-hatchet.run-blue)](https://docs.hatchet.run)
40
+ [![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](https://opensource.org/licenses/MIT)
41
+
42
+ </div>
43
+
44
+ This is the official Python SDK for [Hatchet](https://hatchet.run), a distributed, fault-tolerant task queue. The SDK allows you to easily integrate Hatchet's task scheduling and workflow orchestration capabilities into your Python applications.
45
+
46
+ ## Installation
47
+
48
+ Install the SDK using pip:
49
+
50
+ ```bash
51
+ pip install hatchet-sdk
52
+ ```
53
+
54
+ Or using poetry:
55
+
56
+ ```bash
57
+ poetry add hatchet-sdk
58
+ ```
59
+
60
+ ## Quick Start
61
+
62
+ For examples of how to use the Hatchet Python SDK, including worker setup and task execution, please see our [official documentation](https://docs.hatchet.run/home/setup).
63
+
64
+ ## Features
65
+
66
+ - 🔄 **Workflow Orchestration**: Define complex workflows with dependencies and parallel execution
67
+ - 🔁 **Automatic Retries**: Configure retry policies for handling transient failures
68
+ - 📊 **Observability**: Track workflow progress and monitor execution metrics
69
+ - ⏰ **Scheduling**: Schedule workflows to run at specific times or on a recurring basis
70
+ - 🔄 **Event-Driven**: Trigger workflows based on events in your system
71
+
72
+ ## Documentation
73
+
74
+ For detailed documentation, examples, and best practices, visit:
75
+ - [Hatchet Documentation](https://docs.hatchet.run)
76
+ - [Examples](https://github.com/hatchet-dev/hatchet/tree/main/sdks/python/examples)
77
+
78
+ ## Contributing
79
+
80
+ We welcome contributions! Please check out our [contributing guidelines](https://docs.hatchet.run/contributing) and join our [Discord community](https://hatchet.run/discord) for discussions and support.
81
+
82
+ ## License
83
+
84
+ This SDK is released under the MIT License. See [LICENSE](https://github.com/hatchet-dev/hatchet/blob/main/LICENSE) for details.
85
+
@@ -0,0 +1,51 @@
1
+ # Hatchet Python SDK
2
+
3
+ <div align="center">
4
+
5
+ [![PyPI version](https://badge.fury.io/py/hatchet-sdk.svg)](https://badge.fury.io/py/hatchet-sdk)
6
+ [![Documentation](https://img.shields.io/badge/docs-hatchet.run-blue)](https://docs.hatchet.run)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](https://opensource.org/licenses/MIT)
8
+
9
+ </div>
10
+
11
+ This is the official Python SDK for [Hatchet](https://hatchet.run), a distributed, fault-tolerant task queue. The SDK allows you to easily integrate Hatchet's task scheduling and workflow orchestration capabilities into your Python applications.
12
+
13
+ ## Installation
14
+
15
+ Install the SDK using pip:
16
+
17
+ ```bash
18
+ pip install hatchet-sdk
19
+ ```
20
+
21
+ Or using poetry:
22
+
23
+ ```bash
24
+ poetry add hatchet-sdk
25
+ ```
26
+
27
+ ## Quick Start
28
+
29
+ For examples of how to use the Hatchet Python SDK, including worker setup and task execution, please see our [official documentation](https://docs.hatchet.run/home/setup).
30
+
31
+ ## Features
32
+
33
+ - 🔄 **Workflow Orchestration**: Define complex workflows with dependencies and parallel execution
34
+ - 🔁 **Automatic Retries**: Configure retry policies for handling transient failures
35
+ - 📊 **Observability**: Track workflow progress and monitor execution metrics
36
+ - ⏰ **Scheduling**: Schedule workflows to run at specific times or on a recurring basis
37
+ - 🔄 **Event-Driven**: Trigger workflows based on events in your system
38
+
39
+ ## Documentation
40
+
41
+ For detailed documentation, examples, and best practices, visit:
42
+ - [Hatchet Documentation](https://docs.hatchet.run)
43
+ - [Examples](https://github.com/hatchet-dev/hatchet/tree/main/sdks/python/examples)
44
+
45
+ ## Contributing
46
+
47
+ We welcome contributions! Please check out our [contributing guidelines](https://docs.hatchet.run/contributing) and join our [Discord community](https://hatchet.run/discord) for discussions and support.
48
+
49
+ ## License
50
+
51
+ This SDK is released under the MIT License. See [LICENSE](https://github.com/hatchet-dev/hatchet/blob/main/LICENSE) for details.
@@ -1,6 +1,19 @@
1
- from hatchet_sdk.clients.rest.models.accept_invite_request import AcceptInviteRequest
1
+ from hatchet_sdk.clients.admin import (
2
+ ScheduleTriggerWorkflowOptions,
3
+ TriggerWorkflowOptions,
4
+ )
5
+ from hatchet_sdk.clients.events import PushEventOptions
6
+ from hatchet_sdk.clients.listeners.durable_event_listener import (
7
+ RegisterDurableEventRequest,
8
+ )
9
+ from hatchet_sdk.clients.listeners.run_event_listener import (
10
+ RunEventListener,
11
+ StepRunEventType,
12
+ WorkflowRunEventType,
13
+ )
2
14
 
3
15
  # import models into sdk package
16
+ from hatchet_sdk.clients.rest.models.accept_invite_request import AcceptInviteRequest
4
17
  from hatchet_sdk.clients.rest.models.api_error import APIError
5
18
  from hatchet_sdk.clients.rest.models.api_errors import APIErrors
6
19
  from hatchet_sdk.clients.rest.models.api_meta import APIMeta
@@ -68,7 +81,6 @@ from hatchet_sdk.clients.rest.models.pull_request_state import PullRequestState
68
81
  from hatchet_sdk.clients.rest.models.reject_invite_request import RejectInviteRequest
69
82
  from hatchet_sdk.clients.rest.models.replay_event_request import ReplayEventRequest
70
83
  from hatchet_sdk.clients.rest.models.rerun_step_run_request import RerunStepRunRequest
71
- from hatchet_sdk.clients.rest.models.step import Step
72
84
  from hatchet_sdk.clients.rest.models.step_run import StepRun
73
85
  from hatchet_sdk.clients.rest.models.step_run_diff import StepRunDiff
74
86
  from hatchet_sdk.clients.rest.models.step_run_status import StepRunStatus
@@ -92,6 +104,7 @@ from hatchet_sdk.clients.rest.models.user_tenant_memberships_list import (
92
104
  UserTenantMembershipsList,
93
105
  )
94
106
  from hatchet_sdk.clients.rest.models.user_tenant_public import UserTenantPublic
107
+ from hatchet_sdk.clients.rest.models.v1_task_status import V1TaskStatus
95
108
  from hatchet_sdk.clients.rest.models.worker_list import WorkerList
96
109
  from hatchet_sdk.clients.rest.models.workflow import Workflow
97
110
  from hatchet_sdk.clients.rest.models.workflow_deployment_config import (
@@ -117,32 +130,48 @@ from hatchet_sdk.clients.rest.models.workflow_version_definition import (
117
130
  WorkflowVersionDefinition,
118
131
  )
119
132
  from hatchet_sdk.clients.rest.models.workflow_version_meta import WorkflowVersionMeta
133
+ from hatchet_sdk.conditions import (
134
+ Condition,
135
+ OrGroup,
136
+ ParentCondition,
137
+ SleepCondition,
138
+ UserEventCondition,
139
+ or_,
140
+ )
141
+ from hatchet_sdk.config import ClientConfig, ClientTLSConfig, OpenTelemetryConfig
142
+ from hatchet_sdk.context.context import Context, DurableContext
143
+ from hatchet_sdk.context.worker_context import WorkerContext
120
144
  from hatchet_sdk.contracts.workflows_pb2 import (
121
- ConcurrencyLimitStrategy,
122
145
  CreateWorkflowVersionOpts,
123
146
  RateLimitDuration,
124
- StickyStrategy,
125
147
  WorkerLabelComparator,
126
148
  )
127
- from hatchet_sdk.utils.aio_utils import sync_to_async
128
-
129
- from .client import new_client
130
- from .clients.admin import (
131
- ChildTriggerWorkflowOptions,
132
- DedupeViolationErr,
133
- ScheduleTriggerWorkflowOptions,
134
- TriggerWorkflowOptions,
149
+ from hatchet_sdk.exceptions import (
150
+ DedupeViolationError,
151
+ FailedTaskRunExceptionGroup,
152
+ NonRetryableException,
153
+ TaskRunError,
135
154
  )
136
- from .clients.events import PushEventOptions
137
- from .clients.run_event_listener import StepRunEventType, WorkflowRunEventType
138
- from .context.context import Context
139
- from .context.worker_context import WorkerContext
140
- from .hatchet import ClientConfig, Hatchet, concurrency, on_failure_step, step, workflow
141
- from .worker import Worker, WorkerStartOptions, WorkerStatus
142
- from .workflow import ConcurrencyExpression
155
+ from hatchet_sdk.features.cel import CELEvaluationResult, CELFailure, CELSuccess
156
+ from hatchet_sdk.features.runs import BulkCancelReplayOpts, RunFilter
157
+ from hatchet_sdk.hatchet import Hatchet
158
+ from hatchet_sdk.runnables.task import Depends, Task
159
+ from hatchet_sdk.runnables.types import (
160
+ ConcurrencyExpression,
161
+ ConcurrencyLimitStrategy,
162
+ DefaultFilter,
163
+ EmptyModel,
164
+ StickyStrategy,
165
+ TaskDefaults,
166
+ WorkflowConfig,
167
+ )
168
+ from hatchet_sdk.runnables.workflow import TaskRunRef
169
+ from hatchet_sdk.utils.opentelemetry import OTelAttribute
170
+ from hatchet_sdk.utils.serde import remove_null_unicode_character
171
+ from hatchet_sdk.worker.worker import Worker, WorkerStartOptions, WorkerStatus
172
+ from hatchet_sdk.workflow_run import WorkflowRunRef
143
173
 
144
174
  __all__ = [
145
- "AcceptInviteRequest",
146
175
  "APIError",
147
176
  "APIErrors",
148
177
  "APIMeta",
@@ -150,11 +179,28 @@ __all__ = [
150
179
  "APIMetaIntegration",
151
180
  "APIResourceMeta",
152
181
  "APIToken",
182
+ "AcceptInviteRequest",
183
+ "BulkCancelReplayOpts",
184
+ "CELEvaluationResult",
185
+ "CELFailure",
186
+ "CELSuccess",
187
+ "ClientConfig",
188
+ "ClientTLSConfig",
189
+ "ConcurrencyExpression",
190
+ "ConcurrencyLimitStrategy",
191
+ "Condition",
192
+ "Context",
153
193
  "CreateAPITokenRequest",
154
194
  "CreateAPITokenResponse",
155
195
  "CreatePullRequestFromStepRun",
156
196
  "CreateTenantInviteRequest",
157
197
  "CreateTenantRequest",
198
+ "CreateWorkflowVersionOpts",
199
+ "DedupeViolationError",
200
+ "DefaultFilter",
201
+ "Depends",
202
+ "DurableContext",
203
+ "EmptyModel",
158
204
  "Event",
159
205
  "EventData",
160
206
  "EventKeyList",
@@ -162,10 +208,12 @@ __all__ = [
162
208
  "EventOrderByDirection",
163
209
  "EventOrderByField",
164
210
  "EventWorkflowRunSummary",
211
+ "FailedTaskRunExceptionGroup",
165
212
  "GetStepRunDiffResponse",
166
213
  "GithubAppInstallation",
167
214
  "GithubBranch",
168
215
  "GithubRepo",
216
+ "Hatchet",
169
217
  "Job",
170
218
  "JobRun",
171
219
  "JobRunStatus",
@@ -178,17 +226,33 @@ __all__ = [
178
226
  "LogLineList",
179
227
  "LogLineOrderByDirection",
180
228
  "LogLineOrderByField",
229
+ "NonRetryableException",
230
+ "OTelAttribute",
231
+ "OpenTelemetryConfig",
232
+ "OrGroup",
181
233
  "PaginationResponse",
234
+ "ParentCondition",
182
235
  "PullRequest",
183
236
  "PullRequestState",
237
+ "PushEventOptions",
238
+ "RateLimitDuration",
239
+ "RegisterDurableEventRequest",
184
240
  "RejectInviteRequest",
185
241
  "ReplayEventRequest",
186
242
  "RerunStepRunRequest",
187
- "Step",
243
+ "RunEventListener",
244
+ "RunFilter",
245
+ "ScheduleTriggerWorkflowOptions",
246
+ "SleepCondition",
188
247
  "StepRun",
189
248
  "StepRunDiff",
249
+ "StepRunEventType",
190
250
  "StepRunStatus",
191
- "sync_to_async",
251
+ "StickyStrategy",
252
+ "Task",
253
+ "TaskDefaults",
254
+ "TaskRunError",
255
+ "TaskRunRef",
192
256
  "Tenant",
193
257
  "TenantInvite",
194
258
  "TenantInviteList",
@@ -196,21 +260,32 @@ __all__ = [
196
260
  "TenantMember",
197
261
  "TenantMemberList",
198
262
  "TenantMemberRole",
263
+ "TriggerWorkflowOptions",
199
264
  "TriggerWorkflowRunRequest",
200
265
  "UpdateTenantInviteRequest",
201
266
  "User",
267
+ "UserEventCondition",
202
268
  "UserLoginRequest",
203
269
  "UserRegisterRequest",
204
270
  "UserTenantMembershipsList",
205
271
  "UserTenantPublic",
272
+ "V1TaskStatus",
273
+ "Worker",
206
274
  "Worker",
275
+ "WorkerContext",
207
276
  "WorkerLabelComparator",
208
277
  "WorkerList",
278
+ "WorkerStartOptions",
279
+ "WorkerStatus",
209
280
  "Workflow",
281
+ "Workflow",
282
+ "WorkflowConfig",
210
283
  "WorkflowDeploymentConfig",
211
284
  "WorkflowList",
212
285
  "WorkflowRun",
286
+ "WorkflowRunEventType",
213
287
  "WorkflowRunList",
288
+ "WorkflowRunRef",
214
289
  "WorkflowRunStatus",
215
290
  "WorkflowRunTriggeredBy",
216
291
  "WorkflowTag",
@@ -220,28 +295,7 @@ __all__ = [
220
295
  "WorkflowVersion",
221
296
  "WorkflowVersionDefinition",
222
297
  "WorkflowVersionMeta",
223
- "ConcurrencyLimitStrategy",
224
- "CreateWorkflowVersionOpts",
225
- "RateLimitDuration",
226
- "StickyStrategy",
227
- "new_client",
228
- "ChildTriggerWorkflowOptions",
229
- "DedupeViolationErr",
230
- "ScheduleTriggerWorkflowOptions",
231
- "TriggerWorkflowOptions",
232
- "PushEventOptions",
233
- "StepRunEventType",
234
- "WorkflowRunEventType",
235
- "Context",
236
- "WorkerContext",
237
- "ClientConfig",
238
- "Hatchet",
239
- "concurrency",
240
- "on_failure_step",
241
- "step",
298
+ "or_",
299
+ "remove_null_unicode_character",
242
300
  "workflow",
243
- "Worker",
244
- "WorkerStartOptions",
245
- "WorkerStatus",
246
- "ConcurrencyExpression",
247
301
  ]
@@ -0,0 +1,57 @@
1
+ from hatchet_sdk.clients.admin import AdminClient
2
+ from hatchet_sdk.clients.dispatcher.dispatcher import DispatcherClient
3
+ from hatchet_sdk.clients.events import EventClient
4
+ from hatchet_sdk.clients.listeners.run_event_listener import RunEventListenerClient
5
+ from hatchet_sdk.clients.listeners.workflow_listener import PooledWorkflowRunListener
6
+ from hatchet_sdk.config import ClientConfig
7
+ from hatchet_sdk.features.cel import CELClient
8
+ from hatchet_sdk.features.cron import CronClient
9
+ from hatchet_sdk.features.filters import FiltersClient
10
+ from hatchet_sdk.features.logs import LogsClient
11
+ from hatchet_sdk.features.metrics import MetricsClient
12
+ from hatchet_sdk.features.rate_limits import RateLimitsClient
13
+ from hatchet_sdk.features.runs import RunsClient
14
+ from hatchet_sdk.features.scheduled import ScheduledClient
15
+ from hatchet_sdk.features.tenant import TenantClient
16
+ from hatchet_sdk.features.workers import WorkersClient
17
+ from hatchet_sdk.features.workflows import WorkflowsClient
18
+
19
+
20
+ class Client:
21
+ def __init__(
22
+ self,
23
+ config: ClientConfig,
24
+ event_client: EventClient | None = None,
25
+ admin_client: AdminClient | None = None,
26
+ dispatcher_client: DispatcherClient | None = None,
27
+ workflow_listener: PooledWorkflowRunListener | None = None,
28
+ debug: bool = False,
29
+ ):
30
+ self.config = config
31
+ self.dispatcher = dispatcher_client or DispatcherClient(config)
32
+ self.event = event_client or EventClient(config)
33
+ self.listener = RunEventListenerClient(config)
34
+ self.workflow_listener = workflow_listener or PooledWorkflowRunListener(config)
35
+
36
+ self.log_interceptor = config.logger
37
+ self.debug = debug
38
+
39
+ self.cel = CELClient(self.config)
40
+ self.cron = CronClient(self.config)
41
+ self.filters = FiltersClient(self.config)
42
+ self.logs = LogsClient(self.config)
43
+ self.metrics = MetricsClient(self.config)
44
+ self.rate_limits = RateLimitsClient(self.config)
45
+ self.runs = RunsClient(
46
+ config=self.config,
47
+ workflow_run_event_listener=self.listener,
48
+ workflow_run_listener=self.workflow_listener,
49
+ )
50
+ self.scheduled = ScheduledClient(self.config)
51
+ self.tenant = TenantClient(self.config)
52
+ self.workers = WorkersClient(self.config)
53
+ self.workflows = WorkflowsClient(self.config)
54
+
55
+ self.admin = admin_client or AdminClient(
56
+ config, self.workflow_listener, self.listener, self.runs
57
+ )