hatchet-sdk 0.42.5__tar.gz → 0.43.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.

Potentially problematic release.


This version of hatchet-sdk might be problematic. Click here for more details.

Files changed (235) hide show
  1. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/PKG-INFO +8 -7
  2. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/hatchet.py +6 -4
  3. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/loader.py +23 -0
  4. hatchet_sdk-0.43.1/hatchet_sdk/py.typed +0 -0
  5. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/worker/worker.py +44 -1
  6. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/pyproject.toml +10 -8
  7. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/README.md +0 -0
  8. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/__init__.py +0 -0
  9. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/client.py +0 -0
  10. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/admin.py +0 -0
  11. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/dispatcher/action_listener.py +0 -0
  12. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/dispatcher/dispatcher.py +0 -0
  13. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/event_ts.py +0 -0
  14. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/events.py +0 -0
  15. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/__init__.py +0 -0
  16. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/__init__.py +0 -0
  17. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/api_token_api.py +0 -0
  18. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/default_api.py +0 -0
  19. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/event_api.py +0 -0
  20. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/github_api.py +0 -0
  21. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/healthcheck_api.py +0 -0
  22. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/log_api.py +0 -0
  23. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/metadata_api.py +0 -0
  24. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/rate_limits_api.py +0 -0
  25. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/slack_api.py +0 -0
  26. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/sns_api.py +0 -0
  27. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/step_run_api.py +0 -0
  28. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/tenant_api.py +0 -0
  29. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/user_api.py +0 -0
  30. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/worker_api.py +0 -0
  31. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/workflow_api.py +0 -0
  32. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/workflow_run_api.py +0 -0
  33. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api/workflow_runs_api.py +0 -0
  34. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api_client.py +0 -0
  35. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/api_response.py +0 -0
  36. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/configuration.py +0 -0
  37. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/exceptions.py +0 -0
  38. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/__init__.py +0 -0
  39. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/accept_invite_request.py +0 -0
  40. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/api_error.py +0 -0
  41. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/api_errors.py +0 -0
  42. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/api_meta.py +0 -0
  43. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/api_meta_auth.py +0 -0
  44. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/api_meta_integration.py +0 -0
  45. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/api_meta_posthog.py +0 -0
  46. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/api_resource_meta.py +0 -0
  47. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/api_token.py +0 -0
  48. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/bulk_create_event_request.py +0 -0
  49. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/bulk_create_event_response.py +0 -0
  50. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/cancel_event_request.py +0 -0
  51. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/cancel_step_run_request.py +0 -0
  52. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/concurrency_limit_strategy.py +0 -0
  53. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/create_api_token_request.py +0 -0
  54. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/create_api_token_response.py +0 -0
  55. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/create_cron_workflow_trigger_request.py +0 -0
  56. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/create_event_request.py +0 -0
  57. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/create_pull_request_from_step_run.py +0 -0
  58. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/create_sns_integration_request.py +0 -0
  59. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/create_tenant_alert_email_group_request.py +0 -0
  60. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/create_tenant_invite_request.py +0 -0
  61. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/create_tenant_request.py +0 -0
  62. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/cron_workflows.py +0 -0
  63. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/cron_workflows_list.py +0 -0
  64. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/cron_workflows_method.py +0 -0
  65. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/cron_workflows_order_by_field.py +0 -0
  66. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/event.py +0 -0
  67. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/event_data.py +0 -0
  68. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/event_key_list.py +0 -0
  69. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/event_list.py +0 -0
  70. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/event_order_by_direction.py +0 -0
  71. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/event_order_by_field.py +0 -0
  72. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/event_update_cancel200_response.py +0 -0
  73. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/event_workflow_run_summary.py +0 -0
  74. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/events.py +0 -0
  75. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/get_step_run_diff_response.py +0 -0
  76. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/github_app_installation.py +0 -0
  77. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/github_branch.py +0 -0
  78. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/github_repo.py +0 -0
  79. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/job.py +0 -0
  80. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/job_run.py +0 -0
  81. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/job_run_status.py +0 -0
  82. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/link_github_repository_request.py +0 -0
  83. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/list_api_tokens_response.py +0 -0
  84. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/list_github_app_installations_response.py +0 -0
  85. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/list_pull_requests_response.py +0 -0
  86. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/list_slack_webhooks.py +0 -0
  87. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/list_sns_integrations.py +0 -0
  88. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/log_line.py +0 -0
  89. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/log_line_level.py +0 -0
  90. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/log_line_list.py +0 -0
  91. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/log_line_order_by_direction.py +0 -0
  92. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/log_line_order_by_field.py +0 -0
  93. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/pagination_response.py +0 -0
  94. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/pull_request.py +0 -0
  95. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/pull_request_state.py +0 -0
  96. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/queue_metrics.py +0 -0
  97. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/rate_limit.py +0 -0
  98. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/rate_limit_list.py +0 -0
  99. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/rate_limit_order_by_direction.py +0 -0
  100. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/rate_limit_order_by_field.py +0 -0
  101. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/recent_step_runs.py +0 -0
  102. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/reject_invite_request.py +0 -0
  103. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/replay_event_request.py +0 -0
  104. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/replay_workflow_runs_request.py +0 -0
  105. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/replay_workflow_runs_response.py +0 -0
  106. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/rerun_step_run_request.py +0 -0
  107. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/schedule_workflow_run_request.py +0 -0
  108. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/scheduled_run_status.py +0 -0
  109. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/scheduled_workflows.py +0 -0
  110. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/scheduled_workflows_list.py +0 -0
  111. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/scheduled_workflows_method.py +0 -0
  112. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/scheduled_workflows_order_by_field.py +0 -0
  113. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/semaphore_slots.py +0 -0
  114. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/slack_webhook.py +0 -0
  115. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/sns_integration.py +0 -0
  116. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step.py +0 -0
  117. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step_run.py +0 -0
  118. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step_run_archive.py +0 -0
  119. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step_run_archive_list.py +0 -0
  120. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step_run_diff.py +0 -0
  121. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step_run_event.py +0 -0
  122. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step_run_event_list.py +0 -0
  123. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step_run_event_reason.py +0 -0
  124. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step_run_event_severity.py +0 -0
  125. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/step_run_status.py +0 -0
  126. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant.py +0 -0
  127. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_alert_email_group.py +0 -0
  128. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_alert_email_group_list.py +0 -0
  129. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_alerting_settings.py +0 -0
  130. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_invite.py +0 -0
  131. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_invite_list.py +0 -0
  132. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_list.py +0 -0
  133. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_member.py +0 -0
  134. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_member_list.py +0 -0
  135. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_member_role.py +0 -0
  136. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_queue_metrics.py +0 -0
  137. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_resource.py +0 -0
  138. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_resource_limit.py +0 -0
  139. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_resource_policy.py +0 -0
  140. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/tenant_step_run_queue_metrics.py +0 -0
  141. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/trigger_workflow_run_request.py +0 -0
  142. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/update_tenant_alert_email_group_request.py +0 -0
  143. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/update_tenant_invite_request.py +0 -0
  144. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/update_tenant_request.py +0 -0
  145. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/update_worker_request.py +0 -0
  146. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/user.py +0 -0
  147. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/user_change_password_request.py +0 -0
  148. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/user_login_request.py +0 -0
  149. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/user_register_request.py +0 -0
  150. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/user_tenant_memberships_list.py +0 -0
  151. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/user_tenant_public.py +0 -0
  152. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/webhook_worker.py +0 -0
  153. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/webhook_worker_create_request.py +0 -0
  154. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/webhook_worker_create_response.py +0 -0
  155. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/webhook_worker_created.py +0 -0
  156. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/webhook_worker_list_response.py +0 -0
  157. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/webhook_worker_request.py +0 -0
  158. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/webhook_worker_request_list_response.py +0 -0
  159. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/webhook_worker_request_method.py +0 -0
  160. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/worker.py +0 -0
  161. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/worker_label.py +0 -0
  162. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/worker_list.py +0 -0
  163. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/worker_runtime_info.py +0 -0
  164. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/worker_runtime_sdks.py +0 -0
  165. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/worker_type.py +0 -0
  166. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow.py +0 -0
  167. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_concurrency.py +0 -0
  168. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_deployment_config.py +0 -0
  169. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_kind.py +0 -0
  170. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_list.py +0 -0
  171. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_metrics.py +0 -0
  172. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_run.py +0 -0
  173. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_run_cancel200_response.py +0 -0
  174. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_run_list.py +0 -0
  175. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_run_order_by_direction.py +0 -0
  176. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_run_order_by_field.py +0 -0
  177. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_run_shape.py +0 -0
  178. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_run_status.py +0 -0
  179. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_run_triggered_by.py +0 -0
  180. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_runs_cancel_request.py +0 -0
  181. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_runs_metrics.py +0 -0
  182. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_runs_metrics_counts.py +0 -0
  183. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_tag.py +0 -0
  184. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_trigger_cron_ref.py +0 -0
  185. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_trigger_event_ref.py +0 -0
  186. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_triggers.py +0 -0
  187. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_update_request.py +0 -0
  188. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_version.py +0 -0
  189. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_version_concurrency.py +0 -0
  190. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_version_definition.py +0 -0
  191. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_version_meta.py +0 -0
  192. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/models/workflow_workers_count.py +0 -0
  193. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/rest.py +0 -0
  194. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest/tenacity_utils.py +0 -0
  195. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/rest_client.py +0 -0
  196. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/run_event_listener.py +0 -0
  197. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/clients/workflow_listener.py +0 -0
  198. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/connection.py +0 -0
  199. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/context/__init__.py +0 -0
  200. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/context/context.py +0 -0
  201. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/context/worker_context.py +0 -0
  202. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/contracts/dispatcher_pb2.py +0 -0
  203. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/contracts/dispatcher_pb2.pyi +0 -0
  204. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/contracts/dispatcher_pb2_grpc.py +0 -0
  205. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/contracts/events_pb2.py +0 -0
  206. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/contracts/events_pb2.pyi +0 -0
  207. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/contracts/events_pb2_grpc.py +0 -0
  208. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/contracts/workflows_pb2.py +0 -0
  209. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/contracts/workflows_pb2.pyi +0 -0
  210. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/contracts/workflows_pb2_grpc.py +0 -0
  211. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/features/cron.py +0 -0
  212. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/features/scheduled.py +0 -0
  213. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/labels.py +0 -0
  214. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/logger.py +0 -0
  215. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/metadata.py +0 -0
  216. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/rate_limit.py +0 -0
  217. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/semver.py +0 -0
  218. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/token.py +0 -0
  219. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/utils/aio_utils.py +0 -0
  220. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/utils/backoff.py +0 -0
  221. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/utils/serialization.py +0 -0
  222. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/utils/tracing.py +0 -0
  223. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/utils/types.py +0 -0
  224. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/utils/typing.py +0 -0
  225. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/v2/callable.py +0 -0
  226. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/v2/concurrency.py +0 -0
  227. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/v2/hatchet.py +0 -0
  228. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/worker/__init__.py +0 -0
  229. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/worker/action_listener_process.py +0 -0
  230. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/worker/runner/run_loop_manager.py +0 -0
  231. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/worker/runner/runner.py +0 -0
  232. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/worker/runner/utils/capture_logs.py +0 -0
  233. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/worker/runner/utils/error_with_traceback.py +0 -0
  234. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/workflow.py +0 -0
  235. {hatchet_sdk-0.42.5 → hatchet_sdk-0.43.1}/hatchet_sdk/workflow_run.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hatchet-sdk
3
- Version: 0.42.5
3
+ Version: 0.43.1
4
4
  Summary:
5
5
  Author: Alexander Belanger
6
6
  Author-email: alexander@hatchet.run
@@ -17,12 +17,13 @@ Requires-Dist: grpcio (>=1.68.1,<2.0.0)
17
17
  Requires-Dist: grpcio-tools (>=1.68.1,<2.0.0)
18
18
  Requires-Dist: loguru (>=0.7.2,<0.8.0)
19
19
  Requires-Dist: nest-asyncio (>=1.6.0,<2.0.0)
20
- Requires-Dist: opentelemetry-api (>=1.27.0,<2.0.0)
21
- Requires-Dist: opentelemetry-distro (>=0.48b0,<0.49)
22
- Requires-Dist: opentelemetry-exporter-otlp (>=1.27.0,<2.0.0)
23
- Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.27.0,<2.0.0)
24
- Requires-Dist: opentelemetry-instrumentation (>=0.48b0,<0.49)
25
- Requires-Dist: opentelemetry-sdk (>=1.27.0,<2.0.0)
20
+ Requires-Dist: opentelemetry-api (>=1.28.0,<2.0.0)
21
+ Requires-Dist: opentelemetry-distro (>=0.49b0)
22
+ Requires-Dist: opentelemetry-exporter-otlp (>=1.28.0,<2.0.0)
23
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.28.0,<2.0.0)
24
+ Requires-Dist: opentelemetry-instrumentation (>=0.49b0)
25
+ Requires-Dist: opentelemetry-sdk (>=1.28.0,<2.0.0)
26
+ Requires-Dist: prometheus-client (>=0.21.1,<0.22.0)
26
27
  Requires-Dist: protobuf (>=5.29.1,<6.0.0)
27
28
  Requires-Dist: pydantic (>=2.6.3,<3.0.0)
28
29
  Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
@@ -1,6 +1,6 @@
1
1
  import asyncio
2
2
  import logging
3
- from typing import Any, Callable, Optional, Type, TypeVar, Union
3
+ from typing import Any, Callable, Optional, ParamSpec, Type, TypeVar, Union
4
4
 
5
5
  from pydantic import BaseModel
6
6
  from typing_extensions import deprecated
@@ -35,6 +35,9 @@ from .workflow import (
35
35
  )
36
36
 
37
37
  T = TypeVar("T", bound=BaseModel)
38
+ R = TypeVar("R")
39
+ P = ParamSpec("P")
40
+
38
41
  TWorkflow = TypeVar("TWorkflow", bound=object)
39
42
 
40
43
 
@@ -87,10 +90,10 @@ def step(
87
90
  desired_worker_labels: dict[str, DesiredWorkerLabel] = {},
88
91
  backoff_factor: float | None = None,
89
92
  backoff_max_seconds: int | None = None,
90
- ) -> Callable[..., Any]:
93
+ ) -> Callable[[Callable[P, R]], Callable[P, R]]:
91
94
  parents = parents or []
92
95
 
93
- def inner(func: Callable[[Context], Any]) -> Callable[[Context], Any]:
96
+ def inner(func: Callable[P, R]) -> Callable[P, R]:
94
97
  limits = None
95
98
  if rate_limits:
96
99
  limits = [rate_limit._req for rate_limit in rate_limits or []]
@@ -99,7 +102,6 @@ def step(
99
102
  setattr(func, "_step_parents", parents)
100
103
  setattr(func, "_step_timeout", timeout)
101
104
  setattr(func, "_step_retries", retries)
102
- setattr(func, "_step_rate_limits", retries)
103
105
  setattr(func, "_step_rate_limits", limits)
104
106
  setattr(func, "_step_backoff_factor", backoff_factor)
105
107
  setattr(func, "_step_backoff_max_seconds", backoff_max_seconds)
@@ -43,6 +43,8 @@ class ClientConfig:
43
43
  otel_service_name: str | None = None,
44
44
  otel_exporter_oltp_headers: dict[str, str] | None = None,
45
45
  otel_exporter_oltp_protocol: str | None = None,
46
+ worker_healthcheck_port: int | None = None,
47
+ worker_healthcheck_enabled: bool | None = None,
46
48
  ):
47
49
  self.tenant_id = tenant_id
48
50
  self.tls_config = tls_config
@@ -57,6 +59,8 @@ class ClientConfig:
57
59
  self.otel_service_name = otel_service_name
58
60
  self.otel_exporter_oltp_headers = otel_exporter_oltp_headers
59
61
  self.otel_exporter_oltp_protocol = otel_exporter_oltp_protocol
62
+ self.worker_healthcheck_port = worker_healthcheck_port
63
+ self.worker_healthcheck_enabled = worker_healthcheck_enabled
60
64
 
61
65
  if not self.logInterceptor:
62
66
  self.logInterceptor = getLogger()
@@ -163,6 +167,23 @@ class ConfigLoader:
163
167
  "otel_exporter_oltp_protocol", "HATCHET_CLIENT_OTEL_EXPORTER_OTLP_PROTOCOL"
164
168
  )
165
169
 
170
+ worker_healthcheck_port = int(
171
+ get_config_value(
172
+ "worker_healthcheck_port", "HATCHET_CLIENT_WORKER_HEALTHCHECK_PORT"
173
+ )
174
+ or 8001
175
+ )
176
+
177
+ worker_healthcheck_enabled = (
178
+ str(
179
+ get_config_value(
180
+ "worker_healthcheck_port",
181
+ "HATCHET_CLIENT_WORKER_HEALTHCHECK_ENABLED",
182
+ )
183
+ )
184
+ == "True"
185
+ )
186
+
166
187
  return ClientConfig(
167
188
  tenant_id=tenant_id,
168
189
  tls_config=tls_config,
@@ -178,6 +199,8 @@ class ConfigLoader:
178
199
  otel_service_name=otel_service_name,
179
200
  otel_exporter_oltp_headers=otel_exporter_oltp_headers,
180
201
  otel_exporter_oltp_protocol=otel_exporter_oltp_protocol,
202
+ worker_healthcheck_port=worker_healthcheck_port,
203
+ worker_healthcheck_enabled=worker_healthcheck_enabled,
181
204
  )
182
205
 
183
206
  def _load_tls_config(self, tls_data: Dict, host_port) -> ClientTLSConfig:
File without changes
@@ -12,7 +12,10 @@ from multiprocessing.process import BaseProcess
12
12
  from types import FrameType
13
13
  from typing import Any, Callable, TypeVar, get_type_hints
14
14
 
15
- from pydantic import BaseModel
15
+ from aiohttp import web
16
+ from aiohttp.web_request import Request
17
+ from aiohttp.web_response import Response
18
+ from prometheus_client import CONTENT_TYPE_LATEST, Gauge, generate_latest
16
19
 
17
20
  from hatchet_sdk import Context
18
21
  from hatchet_sdk.client import Client, new_client_raw
@@ -88,6 +91,10 @@ class Worker:
88
91
 
89
92
  self._setup_signal_handlers()
90
93
 
94
+ self.worker_status_gauge = Gauge(
95
+ "hatchet_worker_status", "Current status of the Hatchet worker"
96
+ )
97
+
91
98
  def register_function(self, action: str, func: Callable[[Context], Any]) -> None:
92
99
  self.action_registry[action] = func
93
100
 
@@ -155,6 +162,39 @@ class Worker:
155
162
  created_loop = True
156
163
  return created_loop
157
164
 
165
+ async def health_check_handler(self, request: Request) -> Response:
166
+ status = self.status()
167
+
168
+ return web.json_response({"status": status.name})
169
+
170
+ async def metrics_handler(self, request: Request) -> Response:
171
+ self.worker_status_gauge.set(1 if self.status() == WorkerStatus.HEALTHY else 0)
172
+
173
+ return web.Response(body=generate_latest(), content_type="text/plain")
174
+
175
+ async def start_health_server(self) -> None:
176
+ port = self.config.worker_healthcheck_port or 8001
177
+
178
+ app = web.Application()
179
+ app.add_routes(
180
+ [
181
+ web.get("/health", self.health_check_handler),
182
+ web.get("/metrics", self.metrics_handler),
183
+ ]
184
+ )
185
+
186
+ runner = web.AppRunner(app)
187
+
188
+ try:
189
+ await runner.setup()
190
+ await web.TCPSite(runner, "0.0.0.0", port).start()
191
+ except Exception as e:
192
+ logger.error("failed to start healthcheck server")
193
+ logger.error(str(e))
194
+ return
195
+
196
+ logger.info(f"healthcheck server running on port {port}")
197
+
158
198
  def start(
159
199
  self, options: WorkerStartOptions = WorkerStartOptions()
160
200
  ) -> Future[asyncio.Task[Any] | None]:
@@ -196,6 +236,9 @@ class Worker:
196
236
  if not _from_start:
197
237
  self.setup_loop(options.loop)
198
238
 
239
+ if self.config.worker_healthcheck_enabled:
240
+ await self.start_health_server()
241
+
199
242
  self.action_listener_process = self._start_listener()
200
243
 
201
244
  self.action_runner = self._run_action_runner()
@@ -1,9 +1,10 @@
1
1
  [tool.poetry]
2
2
  name = "hatchet-sdk"
3
- version = "0.42.5"
3
+ version = "0.43.1"
4
4
  description = ""
5
5
  authors = ["Alexander Belanger <alexander@hatchet.run>"]
6
6
  readme = "README.md"
7
+ include = ["hatchet_sdk/py.typed"]
7
8
 
8
9
  [tool.poetry.dependencies]
9
10
  python = "^3.10"
@@ -22,12 +23,13 @@ aiohttp = "^3.10.5"
22
23
  aiohttp-retry = "^2.8.3"
23
24
  tenacity = ">=8.4.1"
24
25
  cel-python = "^0.1.5"
25
- opentelemetry-api = "^1.27.0"
26
- opentelemetry-sdk = "^1.27.0"
27
- opentelemetry-instrumentation = "^0.48b0"
28
- opentelemetry-distro = "^0.48b0"
29
- opentelemetry-exporter-otlp = "^1.27.0"
30
- opentelemetry-exporter-otlp-proto-http = "^1.27.0"
26
+ opentelemetry-api = "^1.28.0"
27
+ opentelemetry-sdk = "^1.28.0"
28
+ opentelemetry-instrumentation = ">=0.49b0"
29
+ opentelemetry-distro = ">=0.49b0"
30
+ opentelemetry-exporter-otlp = "^1.28.0"
31
+ opentelemetry-exporter-otlp-proto-http = "^1.28.0"
32
+ prometheus-client = "^0.21.1"
31
33
 
32
34
  [tool.poetry.group.dev.dependencies]
33
35
  pytest = "^8.2.2"
@@ -35,7 +37,7 @@ pytest-asyncio = "^0.23.8"
35
37
  psutil = "^6.0.0"
36
38
 
37
39
  [tool.poetry.group.lint.dependencies]
38
- mypy = "^1.13.0"
40
+ mypy = "^1.14.0"
39
41
  types-protobuf = "^5.28.3.20241030"
40
42
  black = "^24.10.0"
41
43
  isort = "^5.13.2"
File without changes