hatchet-sdk 0.47.0__tar.gz → 0.47.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 (236) hide show
  1. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/PKG-INFO +1 -1
  2. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest_client.py +9 -0
  3. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/worker/action_listener_process.py +18 -6
  4. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/pyproject.toml +1 -1
  5. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/README.md +0 -0
  6. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/__init__.py +0 -0
  7. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/client.py +0 -0
  8. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/admin.py +0 -0
  9. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/dispatcher/action_listener.py +0 -0
  10. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/dispatcher/dispatcher.py +0 -0
  11. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/event_ts.py +0 -0
  12. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/events.py +0 -0
  13. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/__init__.py +0 -0
  14. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/__init__.py +0 -0
  15. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/api_token_api.py +0 -0
  16. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/default_api.py +0 -0
  17. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/event_api.py +0 -0
  18. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/github_api.py +0 -0
  19. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/healthcheck_api.py +0 -0
  20. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/log_api.py +0 -0
  21. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/metadata_api.py +0 -0
  22. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/rate_limits_api.py +0 -0
  23. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/slack_api.py +0 -0
  24. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/sns_api.py +0 -0
  25. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/step_run_api.py +0 -0
  26. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/tenant_api.py +0 -0
  27. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/user_api.py +0 -0
  28. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/worker_api.py +0 -0
  29. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/workflow_api.py +0 -0
  30. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/workflow_run_api.py +0 -0
  31. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api/workflow_runs_api.py +0 -0
  32. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api_client.py +0 -0
  33. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/api_response.py +0 -0
  34. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/configuration.py +0 -0
  35. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/exceptions.py +0 -0
  36. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/__init__.py +0 -0
  37. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/accept_invite_request.py +0 -0
  38. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/api_error.py +0 -0
  39. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/api_errors.py +0 -0
  40. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/api_meta.py +0 -0
  41. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/api_meta_auth.py +0 -0
  42. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/api_meta_integration.py +0 -0
  43. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/api_meta_posthog.py +0 -0
  44. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/api_resource_meta.py +0 -0
  45. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/api_token.py +0 -0
  46. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/bulk_create_event_request.py +0 -0
  47. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/bulk_create_event_response.py +0 -0
  48. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/cancel_event_request.py +0 -0
  49. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/cancel_step_run_request.py +0 -0
  50. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/concurrency_limit_strategy.py +0 -0
  51. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/create_api_token_request.py +0 -0
  52. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/create_api_token_response.py +0 -0
  53. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/create_cron_workflow_trigger_request.py +0 -0
  54. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/create_event_request.py +0 -0
  55. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/create_pull_request_from_step_run.py +0 -0
  56. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/create_sns_integration_request.py +0 -0
  57. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/create_tenant_alert_email_group_request.py +0 -0
  58. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/create_tenant_invite_request.py +0 -0
  59. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/create_tenant_request.py +0 -0
  60. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/cron_workflows.py +0 -0
  61. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/cron_workflows_list.py +0 -0
  62. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/cron_workflows_method.py +0 -0
  63. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/cron_workflows_order_by_field.py +0 -0
  64. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/event.py +0 -0
  65. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/event_data.py +0 -0
  66. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/event_key_list.py +0 -0
  67. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/event_list.py +0 -0
  68. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/event_order_by_direction.py +0 -0
  69. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/event_order_by_field.py +0 -0
  70. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/event_update_cancel200_response.py +0 -0
  71. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/event_workflow_run_summary.py +0 -0
  72. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/events.py +0 -0
  73. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/get_step_run_diff_response.py +0 -0
  74. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/github_app_installation.py +0 -0
  75. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/github_branch.py +0 -0
  76. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/github_repo.py +0 -0
  77. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/info_get_version200_response.py +0 -0
  78. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/job.py +0 -0
  79. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/job_run.py +0 -0
  80. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/job_run_status.py +0 -0
  81. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/link_github_repository_request.py +0 -0
  82. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/list_api_tokens_response.py +0 -0
  83. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/list_github_app_installations_response.py +0 -0
  84. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/list_pull_requests_response.py +0 -0
  85. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/list_slack_webhooks.py +0 -0
  86. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/list_sns_integrations.py +0 -0
  87. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/log_line.py +0 -0
  88. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/log_line_level.py +0 -0
  89. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/log_line_list.py +0 -0
  90. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/log_line_order_by_direction.py +0 -0
  91. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/log_line_order_by_field.py +0 -0
  92. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/pagination_response.py +0 -0
  93. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/pull_request.py +0 -0
  94. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/pull_request_state.py +0 -0
  95. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/queue_metrics.py +0 -0
  96. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/rate_limit.py +0 -0
  97. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/rate_limit_list.py +0 -0
  98. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/rate_limit_order_by_direction.py +0 -0
  99. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/rate_limit_order_by_field.py +0 -0
  100. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/recent_step_runs.py +0 -0
  101. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/reject_invite_request.py +0 -0
  102. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/replay_event_request.py +0 -0
  103. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/replay_workflow_runs_request.py +0 -0
  104. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/replay_workflow_runs_response.py +0 -0
  105. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/rerun_step_run_request.py +0 -0
  106. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/schedule_workflow_run_request.py +0 -0
  107. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/scheduled_run_status.py +0 -0
  108. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/scheduled_workflows.py +0 -0
  109. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/scheduled_workflows_list.py +0 -0
  110. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/scheduled_workflows_method.py +0 -0
  111. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/scheduled_workflows_order_by_field.py +0 -0
  112. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/semaphore_slots.py +0 -0
  113. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/slack_webhook.py +0 -0
  114. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/sns_integration.py +0 -0
  115. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step.py +0 -0
  116. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step_run.py +0 -0
  117. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step_run_archive.py +0 -0
  118. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step_run_archive_list.py +0 -0
  119. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step_run_diff.py +0 -0
  120. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step_run_event.py +0 -0
  121. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step_run_event_list.py +0 -0
  122. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step_run_event_reason.py +0 -0
  123. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step_run_event_severity.py +0 -0
  124. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/step_run_status.py +0 -0
  125. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant.py +0 -0
  126. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_alert_email_group.py +0 -0
  127. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_alert_email_group_list.py +0 -0
  128. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_alerting_settings.py +0 -0
  129. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_invite.py +0 -0
  130. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_invite_list.py +0 -0
  131. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_list.py +0 -0
  132. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_member.py +0 -0
  133. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_member_list.py +0 -0
  134. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_member_role.py +0 -0
  135. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_queue_metrics.py +0 -0
  136. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_resource.py +0 -0
  137. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_resource_limit.py +0 -0
  138. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_resource_policy.py +0 -0
  139. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/tenant_step_run_queue_metrics.py +0 -0
  140. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/trigger_workflow_run_request.py +0 -0
  141. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/update_tenant_alert_email_group_request.py +0 -0
  142. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/update_tenant_invite_request.py +0 -0
  143. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/update_tenant_request.py +0 -0
  144. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/update_worker_request.py +0 -0
  145. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/user.py +0 -0
  146. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/user_change_password_request.py +0 -0
  147. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/user_login_request.py +0 -0
  148. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/user_register_request.py +0 -0
  149. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/user_tenant_memberships_list.py +0 -0
  150. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/user_tenant_public.py +0 -0
  151. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/webhook_worker.py +0 -0
  152. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/webhook_worker_create_request.py +0 -0
  153. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/webhook_worker_create_response.py +0 -0
  154. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/webhook_worker_created.py +0 -0
  155. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/webhook_worker_list_response.py +0 -0
  156. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/webhook_worker_request.py +0 -0
  157. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/webhook_worker_request_list_response.py +0 -0
  158. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/webhook_worker_request_method.py +0 -0
  159. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/worker.py +0 -0
  160. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/worker_label.py +0 -0
  161. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/worker_list.py +0 -0
  162. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/worker_runtime_info.py +0 -0
  163. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/worker_runtime_sdks.py +0 -0
  164. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/worker_type.py +0 -0
  165. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow.py +0 -0
  166. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_concurrency.py +0 -0
  167. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_deployment_config.py +0 -0
  168. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_kind.py +0 -0
  169. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_list.py +0 -0
  170. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_metrics.py +0 -0
  171. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_run.py +0 -0
  172. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_run_cancel200_response.py +0 -0
  173. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_run_list.py +0 -0
  174. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_run_order_by_direction.py +0 -0
  175. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_run_order_by_field.py +0 -0
  176. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_run_shape.py +0 -0
  177. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_run_status.py +0 -0
  178. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_run_triggered_by.py +0 -0
  179. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_runs_cancel_request.py +0 -0
  180. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_runs_metrics.py +0 -0
  181. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_runs_metrics_counts.py +0 -0
  182. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_tag.py +0 -0
  183. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_trigger_cron_ref.py +0 -0
  184. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_trigger_event_ref.py +0 -0
  185. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_triggers.py +0 -0
  186. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_update_request.py +0 -0
  187. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_version.py +0 -0
  188. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_version_concurrency.py +0 -0
  189. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_version_definition.py +0 -0
  190. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_version_meta.py +0 -0
  191. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/models/workflow_workers_count.py +0 -0
  192. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/rest.py +0 -0
  193. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/rest/tenacity_utils.py +0 -0
  194. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/run_event_listener.py +0 -0
  195. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/clients/workflow_listener.py +0 -0
  196. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/connection.py +0 -0
  197. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/context/__init__.py +0 -0
  198. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/context/context.py +0 -0
  199. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/context/worker_context.py +0 -0
  200. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/contracts/dispatcher_pb2.py +0 -0
  201. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/contracts/dispatcher_pb2.pyi +0 -0
  202. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/contracts/dispatcher_pb2_grpc.py +0 -0
  203. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/contracts/events_pb2.py +0 -0
  204. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/contracts/events_pb2.pyi +0 -0
  205. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/contracts/events_pb2_grpc.py +0 -0
  206. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/contracts/workflows_pb2.py +0 -0
  207. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/contracts/workflows_pb2.pyi +0 -0
  208. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/contracts/workflows_pb2_grpc.py +0 -0
  209. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/features/cron.py +0 -0
  210. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/features/scheduled.py +0 -0
  211. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/hatchet.py +0 -0
  212. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/labels.py +0 -0
  213. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/loader.py +0 -0
  214. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/logger.py +0 -0
  215. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/metadata.py +0 -0
  216. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/opentelemetry/instrumentor.py +0 -0
  217. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/py.typed +0 -0
  218. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/rate_limit.py +0 -0
  219. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/semver.py +0 -0
  220. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/token.py +0 -0
  221. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/utils/aio_utils.py +0 -0
  222. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/utils/backoff.py +0 -0
  223. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/utils/serialization.py +0 -0
  224. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/utils/types.py +0 -0
  225. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/utils/typing.py +0 -0
  226. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/v2/callable.py +0 -0
  227. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/v2/concurrency.py +0 -0
  228. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/v2/hatchet.py +0 -0
  229. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/worker/__init__.py +0 -0
  230. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/worker/runner/run_loop_manager.py +0 -0
  231. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/worker/runner/runner.py +0 -0
  232. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/worker/runner/utils/capture_logs.py +0 -0
  233. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/worker/runner/utils/error_with_traceback.py +0 -0
  234. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/worker/worker.py +0 -0
  235. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.1}/hatchet_sdk/workflow.py +0 -0
  236. {hatchet_sdk-0.47.0 → hatchet_sdk-0.47.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.47.0
3
+ Version: 0.47.1
4
4
  Summary:
5
5
  Author: Alexander Belanger
6
6
  Author-email: alexander@hatchet.run
@@ -9,6 +9,7 @@ from pydantic import StrictInt
9
9
  from hatchet_sdk.clients.rest.api.event_api import EventApi
10
10
  from hatchet_sdk.clients.rest.api.log_api import LogApi
11
11
  from hatchet_sdk.clients.rest.api.step_run_api import StepRunApi
12
+ from hatchet_sdk.clients.rest.api.worker_api import WorkerApi
12
13
  from hatchet_sdk.clients.rest.api.workflow_api import WorkflowApi
13
14
  from hatchet_sdk.clients.rest.api.workflow_run_api import WorkflowRunApi
14
15
  from hatchet_sdk.clients.rest.api.workflow_runs_api import WorkflowRunsApi
@@ -83,6 +84,7 @@ class AsyncRestApi:
83
84
  self._step_run_api = None
84
85
  self._event_api = None
85
86
  self._log_api = None
87
+ self._worker_api: WorkerApi | None = None
86
88
 
87
89
  @property
88
90
  def api_client(self):
@@ -102,6 +104,13 @@ class AsyncRestApi:
102
104
  self._workflow_run_api = WorkflowRunApi(self.api_client)
103
105
  return self._workflow_run_api
104
106
 
107
+ @property
108
+ def worker_api(self):
109
+ if self._worker_api is None:
110
+ self._worker_api = WorkerApi(self.api_client)
111
+
112
+ return self._worker_api
113
+
105
114
  @property
106
115
  def step_run_api(self):
107
116
  if self._step_run_api is None:
@@ -8,12 +8,14 @@ from typing import Any, List, Mapping, Optional
8
8
 
9
9
  import grpc
10
10
 
11
+ from hatchet_sdk.client import Client, new_client_raw
11
12
  from hatchet_sdk.clients.dispatcher.action_listener import Action
12
13
  from hatchet_sdk.clients.dispatcher.dispatcher import (
13
14
  ActionListener,
14
15
  GetActionListenerRequest,
15
16
  new_dispatcher,
16
17
  )
18
+ from hatchet_sdk.clients.rest.models.update_worker_request import UpdateWorkerRequest
17
19
  from hatchet_sdk.contracts.dispatcher_pb2 import (
18
20
  GROUP_KEY_EVENT_TYPE_STARTED,
19
21
  STEP_EVENT_TYPE_STARTED,
@@ -41,10 +43,6 @@ BLOCKED_THREAD_WARNING = (
41
43
  )
42
44
 
43
45
 
44
- def noop_handler():
45
- pass
46
-
47
-
48
46
  @dataclass
49
47
  class WorkerActionListenerProcess:
50
48
  name: str
@@ -70,9 +68,15 @@ class WorkerActionListenerProcess:
70
68
  if self.debug:
71
69
  logger.setLevel(logging.DEBUG)
72
70
 
71
+ self.client = new_client_raw(self.config, self.debug)
72
+
73
73
  loop = asyncio.get_event_loop()
74
- loop.add_signal_handler(signal.SIGINT, noop_handler)
75
- loop.add_signal_handler(signal.SIGTERM, noop_handler)
74
+ loop.add_signal_handler(
75
+ signal.SIGINT, lambda: asyncio.create_task(self.pause_task_assignment())
76
+ )
77
+ loop.add_signal_handler(
78
+ signal.SIGTERM, lambda: asyncio.create_task(self.pause_task_assignment())
79
+ )
76
80
  loop.add_signal_handler(
77
81
  signal.SIGQUIT, lambda: asyncio.create_task(self.exit_gracefully())
78
82
  )
@@ -249,7 +253,15 @@ class WorkerActionListenerProcess:
249
253
 
250
254
  self.event_queue.put(STOP_LOOP)
251
255
 
256
+ async def pause_task_assignment(self) -> None:
257
+ await self.client.rest.aio.worker_api.worker_update(
258
+ worker=self.listener.worker_id,
259
+ update_worker_request=UpdateWorkerRequest(isPaused=True),
260
+ )
261
+
252
262
  async def exit_gracefully(self, skip_unregister=False):
263
+ await self.pause_task_assignment()
264
+
253
265
  if self.killing:
254
266
  return
255
267
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "hatchet-sdk"
3
- version = "0.47.0"
3
+ version = "0.47.1"
4
4
  description = ""
5
5
  authors = ["Alexander Belanger <alexander@hatchet.run>"]
6
6
  readme = "README.md"
File without changes