hatchet-sdk 1.0.0a1__tar.gz → 1.0.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.

Potentially problematic release.


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

Files changed (512) hide show
  1. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/PKG-INFO +2 -1
  2. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/__init__.py +5 -0
  3. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/client.py +17 -5
  4. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/admin.py +1 -18
  5. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/dispatcher/action_listener.py +2 -4
  6. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/durable_event_listener.py +6 -3
  7. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/events.py +1 -2
  8. {hatchet_sdk-1.0.0a1/hatchet_sdk/v0 → hatchet_sdk-1.0.2/hatchet_sdk}/clients/rest/models/workflow_runs_metrics.py +5 -1
  9. hatchet_sdk-1.0.2/hatchet_sdk/clients/v1/api_client.py +81 -0
  10. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/workflow_listener.py +6 -3
  11. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/context/context.py +1 -12
  12. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/features/cron.py +89 -119
  13. hatchet_sdk-1.0.2/hatchet_sdk/features/logs.py +16 -0
  14. hatchet_sdk-1.0.2/hatchet_sdk/features/metrics.py +75 -0
  15. hatchet_sdk-1.0.2/hatchet_sdk/features/rate_limits.py +45 -0
  16. hatchet_sdk-1.0.2/hatchet_sdk/features/runs.py +221 -0
  17. hatchet_sdk-1.0.2/hatchet_sdk/features/scheduled.py +217 -0
  18. hatchet_sdk-1.0.2/hatchet_sdk/features/workers.py +41 -0
  19. hatchet_sdk-1.0.2/hatchet_sdk/features/workflows.py +55 -0
  20. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/hatchet.py +36 -14
  21. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/runnables/standalone.py +9 -11
  22. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/runnables/types.py +1 -1
  23. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/runnables/workflow.py +26 -19
  24. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/worker/action_listener_process.py +3 -3
  25. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/worker/runner/run_loop_manager.py +0 -1
  26. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/worker/runner/runner.py +4 -11
  27. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/worker/runner/utils/capture_logs.py +0 -3
  28. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/worker/worker.py +30 -21
  29. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/pyproject.toml +8 -2
  30. hatchet_sdk-1.0.0a1/hatchet_sdk/clients/rest_client.py +0 -657
  31. hatchet_sdk-1.0.0a1/hatchet_sdk/features/scheduled.py +0 -234
  32. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/README.md +0 -0
  33. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/dispatcher/dispatcher.py +0 -0
  34. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/event_ts.py +0 -0
  35. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/__init__.py +0 -0
  36. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/__init__.py +0 -0
  37. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/api_token_api.py +0 -0
  38. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/default_api.py +0 -0
  39. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/event_api.py +0 -0
  40. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/github_api.py +0 -0
  41. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/healthcheck_api.py +0 -0
  42. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/log_api.py +0 -0
  43. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/metadata_api.py +0 -0
  44. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/rate_limits_api.py +0 -0
  45. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/slack_api.py +0 -0
  46. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/sns_api.py +0 -0
  47. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/step_run_api.py +0 -0
  48. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/task_api.py +0 -0
  49. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/tenant_api.py +0 -0
  50. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/user_api.py +0 -0
  51. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/worker_api.py +0 -0
  52. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/workflow_api.py +0 -0
  53. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/workflow_run_api.py +0 -0
  54. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api/workflow_runs_api.py +0 -0
  55. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api_client.py +0 -0
  56. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/api_response.py +0 -0
  57. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/configuration.py +0 -0
  58. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/exceptions.py +0 -0
  59. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/__init__.py +0 -0
  60. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/accept_invite_request.py +0 -0
  61. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/api_error.py +0 -0
  62. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/api_errors.py +0 -0
  63. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/api_meta.py +0 -0
  64. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/api_meta_auth.py +0 -0
  65. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/api_meta_integration.py +0 -0
  66. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/api_meta_posthog.py +0 -0
  67. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/api_resource_meta.py +0 -0
  68. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/api_token.py +0 -0
  69. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/bulk_create_event_request.py +0 -0
  70. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/bulk_create_event_response.py +0 -0
  71. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/cancel_event_request.py +0 -0
  72. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/cancel_step_run_request.py +0 -0
  73. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/concurrency_limit_strategy.py +0 -0
  74. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/create_api_token_request.py +0 -0
  75. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/create_api_token_response.py +0 -0
  76. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/create_cron_workflow_trigger_request.py +0 -0
  77. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/create_event_request.py +0 -0
  78. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/create_pull_request_from_step_run.py +0 -0
  79. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/create_sns_integration_request.py +0 -0
  80. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/create_tenant_alert_email_group_request.py +0 -0
  81. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/create_tenant_invite_request.py +0 -0
  82. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/create_tenant_request.py +0 -0
  83. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/cron_workflows.py +0 -0
  84. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/cron_workflows_list.py +0 -0
  85. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/cron_workflows_method.py +0 -0
  86. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/cron_workflows_order_by_field.py +0 -0
  87. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/event.py +0 -0
  88. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/event_data.py +0 -0
  89. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/event_key_list.py +0 -0
  90. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/event_list.py +0 -0
  91. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/event_order_by_direction.py +0 -0
  92. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/event_order_by_field.py +0 -0
  93. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/event_update_cancel200_response.py +0 -0
  94. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/event_workflow_run_summary.py +0 -0
  95. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/events.py +0 -0
  96. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/get_step_run_diff_response.py +0 -0
  97. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/github_app_installation.py +0 -0
  98. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/github_branch.py +0 -0
  99. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/github_repo.py +0 -0
  100. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/info_get_version200_response.py +0 -0
  101. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/job.py +0 -0
  102. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/job_run.py +0 -0
  103. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/job_run_status.py +0 -0
  104. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/link_github_repository_request.py +0 -0
  105. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/list_api_tokens_response.py +0 -0
  106. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/list_github_app_installations_response.py +0 -0
  107. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/list_pull_requests_response.py +0 -0
  108. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/list_slack_webhooks.py +0 -0
  109. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/list_sns_integrations.py +0 -0
  110. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/log_line.py +0 -0
  111. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/log_line_level.py +0 -0
  112. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/log_line_list.py +0 -0
  113. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/log_line_order_by_direction.py +0 -0
  114. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/log_line_order_by_field.py +0 -0
  115. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/pagination_response.py +0 -0
  116. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/pull_request.py +0 -0
  117. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/pull_request_state.py +0 -0
  118. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/queue_metrics.py +0 -0
  119. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/rate_limit.py +0 -0
  120. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/rate_limit_list.py +0 -0
  121. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/rate_limit_order_by_direction.py +0 -0
  122. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/rate_limit_order_by_field.py +0 -0
  123. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/recent_step_runs.py +0 -0
  124. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/reject_invite_request.py +0 -0
  125. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/replay_event_request.py +0 -0
  126. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/replay_workflow_runs_request.py +0 -0
  127. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/replay_workflow_runs_response.py +0 -0
  128. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/rerun_step_run_request.py +0 -0
  129. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/schedule_workflow_run_request.py +0 -0
  130. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/scheduled_run_status.py +0 -0
  131. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/scheduled_workflows.py +0 -0
  132. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/scheduled_workflows_list.py +0 -0
  133. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/scheduled_workflows_method.py +0 -0
  134. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/scheduled_workflows_order_by_field.py +0 -0
  135. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/semaphore_slots.py +0 -0
  136. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/slack_webhook.py +0 -0
  137. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/sns_integration.py +0 -0
  138. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step.py +0 -0
  139. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step_run.py +0 -0
  140. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step_run_archive.py +0 -0
  141. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step_run_archive_list.py +0 -0
  142. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step_run_diff.py +0 -0
  143. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step_run_event.py +0 -0
  144. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step_run_event_list.py +0 -0
  145. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step_run_event_reason.py +0 -0
  146. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step_run_event_severity.py +0 -0
  147. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/step_run_status.py +0 -0
  148. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant.py +0 -0
  149. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_alert_email_group.py +0 -0
  150. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_alert_email_group_list.py +0 -0
  151. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_alerting_settings.py +0 -0
  152. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_invite.py +0 -0
  153. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_invite_list.py +0 -0
  154. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_list.py +0 -0
  155. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_member.py +0 -0
  156. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_member_list.py +0 -0
  157. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_member_role.py +0 -0
  158. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_queue_metrics.py +0 -0
  159. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_resource.py +0 -0
  160. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_resource_limit.py +0 -0
  161. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_resource_policy.py +0 -0
  162. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_step_run_queue_metrics.py +0 -0
  163. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/tenant_version.py +0 -0
  164. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/trigger_workflow_run_request.py +0 -0
  165. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/update_tenant_alert_email_group_request.py +0 -0
  166. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/update_tenant_invite_request.py +0 -0
  167. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/update_tenant_request.py +0 -0
  168. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/update_worker_request.py +0 -0
  169. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/user.py +0 -0
  170. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/user_change_password_request.py +0 -0
  171. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/user_login_request.py +0 -0
  172. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/user_register_request.py +0 -0
  173. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/user_tenant_memberships_list.py +0 -0
  174. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/user_tenant_public.py +0 -0
  175. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_cancel_task_request.py +0 -0
  176. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_dag_children.py +0 -0
  177. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_log_line.py +0 -0
  178. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_log_line_level.py +0 -0
  179. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_log_line_list.py +0 -0
  180. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_replay_task_request.py +0 -0
  181. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task.py +0 -0
  182. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_event.py +0 -0
  183. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_event_list.py +0 -0
  184. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_event_type.py +0 -0
  185. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_filter.py +0 -0
  186. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_point_metric.py +0 -0
  187. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_point_metrics.py +0 -0
  188. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_run_metric.py +0 -0
  189. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_run_status.py +0 -0
  190. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_status.py +0 -0
  191. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_summary.py +0 -0
  192. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_task_summary_list.py +0 -0
  193. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_trigger_workflow_run_request.py +0 -0
  194. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_workflow_run.py +0 -0
  195. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_workflow_run_details.py +0 -0
  196. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_workflow_run_display_name.py +0 -0
  197. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_workflow_run_display_name_list.py +0 -0
  198. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/v1_workflow_type.py +0 -0
  199. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/webhook_worker.py +0 -0
  200. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/webhook_worker_create_request.py +0 -0
  201. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/webhook_worker_create_response.py +0 -0
  202. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/webhook_worker_created.py +0 -0
  203. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/webhook_worker_list_response.py +0 -0
  204. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/webhook_worker_request.py +0 -0
  205. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/webhook_worker_request_list_response.py +0 -0
  206. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/webhook_worker_request_method.py +0 -0
  207. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/worker.py +0 -0
  208. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/worker_label.py +0 -0
  209. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/worker_list.py +0 -0
  210. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/worker_runtime_info.py +0 -0
  211. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/worker_runtime_sdks.py +0 -0
  212. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/worker_type.py +0 -0
  213. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow.py +0 -0
  214. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_concurrency.py +0 -0
  215. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_deployment_config.py +0 -0
  216. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_kind.py +0 -0
  217. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_list.py +0 -0
  218. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_metrics.py +0 -0
  219. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_run.py +0 -0
  220. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_run_cancel200_response.py +0 -0
  221. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_run_list.py +0 -0
  222. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_run_order_by_direction.py +0 -0
  223. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_run_order_by_field.py +0 -0
  224. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_run_shape.py +0 -0
  225. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_run_shape_item_for_workflow_run_details.py +0 -0
  226. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_run_status.py +0 -0
  227. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_run_triggered_by.py +0 -0
  228. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_runs_cancel_request.py +0 -0
  229. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_runs_metrics_counts.py +0 -0
  230. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_tag.py +0 -0
  231. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_trigger_cron_ref.py +0 -0
  232. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_trigger_event_ref.py +0 -0
  233. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_triggers.py +0 -0
  234. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_update_request.py +0 -0
  235. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_version.py +0 -0
  236. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_version_concurrency.py +0 -0
  237. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_version_definition.py +0 -0
  238. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_version_meta.py +0 -0
  239. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/models/workflow_workers_count.py +0 -0
  240. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/rest.py +0 -0
  241. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/rest/tenacity_utils.py +0 -0
  242. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/clients/run_event_listener.py +0 -0
  243. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/config.py +0 -0
  244. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/connection.py +0 -0
  245. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/context/__init__.py +0 -0
  246. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/context/worker_context.py +0 -0
  247. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/dispatcher_pb2.py +0 -0
  248. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/dispatcher_pb2.pyi +0 -0
  249. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/dispatcher_pb2_grpc.py +0 -0
  250. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/events_pb2.py +0 -0
  251. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/events_pb2.pyi +0 -0
  252. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/events_pb2_grpc.py +0 -0
  253. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/v1/dispatcher_pb2.py +0 -0
  254. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/v1/dispatcher_pb2.pyi +0 -0
  255. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/v1/dispatcher_pb2_grpc.py +0 -0
  256. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/v1/shared/condition_pb2.py +0 -0
  257. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/v1/shared/condition_pb2.pyi +0 -0
  258. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/v1/shared/condition_pb2_grpc.py +0 -0
  259. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/v1/workflows_pb2.py +0 -0
  260. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/v1/workflows_pb2.pyi +0 -0
  261. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/v1/workflows_pb2_grpc.py +0 -0
  262. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/workflows_pb2.py +0 -0
  263. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/workflows_pb2.pyi +0 -0
  264. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/contracts/workflows_pb2_grpc.py +0 -0
  265. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/labels.py +0 -0
  266. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/logger.py +0 -0
  267. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/metadata.py +0 -0
  268. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/opentelemetry/instrumentor.py +0 -0
  269. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/py.typed +0 -0
  270. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/rate_limit.py +0 -0
  271. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/runnables/contextvars.py +0 -0
  272. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/runnables/task.py +0 -0
  273. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/token.py +0 -0
  274. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/utils/aio_utils.py +0 -0
  275. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/utils/backoff.py +0 -0
  276. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/utils/proto_enums.py +0 -0
  277. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/utils/timedelta_to_expression.py +0 -0
  278. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/utils/typing.py +0 -0
  279. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/__init__.py +0 -0
  280. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/client.py +0 -0
  281. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/admin.py +0 -0
  282. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/dispatcher/action_listener.py +0 -0
  283. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/dispatcher/dispatcher.py +0 -0
  284. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/event_ts.py +0 -0
  285. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/events.py +0 -0
  286. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/__init__.py +0 -0
  287. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/__init__.py +0 -0
  288. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/api_token_api.py +0 -0
  289. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/default_api.py +0 -0
  290. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/event_api.py +0 -0
  291. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/github_api.py +0 -0
  292. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/healthcheck_api.py +0 -0
  293. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/log_api.py +0 -0
  294. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/metadata_api.py +0 -0
  295. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/rate_limits_api.py +0 -0
  296. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/slack_api.py +0 -0
  297. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/sns_api.py +0 -0
  298. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/step_run_api.py +0 -0
  299. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/tenant_api.py +0 -0
  300. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/user_api.py +0 -0
  301. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/worker_api.py +0 -0
  302. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/workflow_api.py +0 -0
  303. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/workflow_run_api.py +0 -0
  304. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api/workflow_runs_api.py +0 -0
  305. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api_client.py +0 -0
  306. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/api_response.py +0 -0
  307. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/configuration.py +0 -0
  308. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/exceptions.py +0 -0
  309. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/__init__.py +0 -0
  310. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/accept_invite_request.py +0 -0
  311. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/api_error.py +0 -0
  312. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/api_errors.py +0 -0
  313. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/api_meta.py +0 -0
  314. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/api_meta_auth.py +0 -0
  315. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/api_meta_integration.py +0 -0
  316. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/api_meta_posthog.py +0 -0
  317. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/api_resource_meta.py +0 -0
  318. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/api_token.py +0 -0
  319. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/bulk_create_event_request.py +0 -0
  320. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/bulk_create_event_response.py +0 -0
  321. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/cancel_event_request.py +0 -0
  322. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/cancel_step_run_request.py +0 -0
  323. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/concurrency_limit_strategy.py +0 -0
  324. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/create_api_token_request.py +0 -0
  325. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/create_api_token_response.py +0 -0
  326. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/create_cron_workflow_trigger_request.py +0 -0
  327. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/create_event_request.py +0 -0
  328. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/create_pull_request_from_step_run.py +0 -0
  329. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/create_sns_integration_request.py +0 -0
  330. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/create_tenant_alert_email_group_request.py +0 -0
  331. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/create_tenant_invite_request.py +0 -0
  332. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/create_tenant_request.py +0 -0
  333. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/cron_workflows.py +0 -0
  334. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/cron_workflows_list.py +0 -0
  335. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/cron_workflows_method.py +0 -0
  336. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/cron_workflows_order_by_field.py +0 -0
  337. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/event.py +0 -0
  338. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/event_data.py +0 -0
  339. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/event_key_list.py +0 -0
  340. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/event_list.py +0 -0
  341. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/event_order_by_direction.py +0 -0
  342. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/event_order_by_field.py +0 -0
  343. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/event_update_cancel200_response.py +0 -0
  344. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/event_workflow_run_summary.py +0 -0
  345. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/events.py +0 -0
  346. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/get_step_run_diff_response.py +0 -0
  347. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/github_app_installation.py +0 -0
  348. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/github_branch.py +0 -0
  349. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/github_repo.py +0 -0
  350. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/info_get_version200_response.py +0 -0
  351. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/job.py +0 -0
  352. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/job_run.py +0 -0
  353. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/job_run_status.py +0 -0
  354. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/link_github_repository_request.py +0 -0
  355. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/list_api_tokens_response.py +0 -0
  356. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/list_github_app_installations_response.py +0 -0
  357. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/list_pull_requests_response.py +0 -0
  358. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/list_slack_webhooks.py +0 -0
  359. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/list_sns_integrations.py +0 -0
  360. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/log_line.py +0 -0
  361. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/log_line_level.py +0 -0
  362. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/log_line_list.py +0 -0
  363. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/log_line_order_by_direction.py +0 -0
  364. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/log_line_order_by_field.py +0 -0
  365. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/pagination_response.py +0 -0
  366. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/pull_request.py +0 -0
  367. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/pull_request_state.py +0 -0
  368. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/queue_metrics.py +0 -0
  369. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/rate_limit.py +0 -0
  370. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/rate_limit_list.py +0 -0
  371. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/rate_limit_order_by_direction.py +0 -0
  372. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/rate_limit_order_by_field.py +0 -0
  373. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/recent_step_runs.py +0 -0
  374. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/reject_invite_request.py +0 -0
  375. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/replay_event_request.py +0 -0
  376. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/replay_workflow_runs_request.py +0 -0
  377. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/replay_workflow_runs_response.py +0 -0
  378. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/rerun_step_run_request.py +0 -0
  379. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/schedule_workflow_run_request.py +0 -0
  380. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/scheduled_run_status.py +0 -0
  381. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/scheduled_workflows.py +0 -0
  382. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/scheduled_workflows_list.py +0 -0
  383. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/scheduled_workflows_method.py +0 -0
  384. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/scheduled_workflows_order_by_field.py +0 -0
  385. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/semaphore_slots.py +0 -0
  386. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/slack_webhook.py +0 -0
  387. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/sns_integration.py +0 -0
  388. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step.py +0 -0
  389. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step_run.py +0 -0
  390. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step_run_archive.py +0 -0
  391. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step_run_archive_list.py +0 -0
  392. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step_run_diff.py +0 -0
  393. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step_run_event.py +0 -0
  394. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step_run_event_list.py +0 -0
  395. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step_run_event_reason.py +0 -0
  396. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step_run_event_severity.py +0 -0
  397. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/step_run_status.py +0 -0
  398. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant.py +0 -0
  399. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_alert_email_group.py +0 -0
  400. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_alert_email_group_list.py +0 -0
  401. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_alerting_settings.py +0 -0
  402. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_invite.py +0 -0
  403. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_invite_list.py +0 -0
  404. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_list.py +0 -0
  405. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_member.py +0 -0
  406. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_member_list.py +0 -0
  407. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_member_role.py +0 -0
  408. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_queue_metrics.py +0 -0
  409. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_resource.py +0 -0
  410. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_resource_limit.py +0 -0
  411. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_resource_policy.py +0 -0
  412. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/tenant_step_run_queue_metrics.py +0 -0
  413. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/trigger_workflow_run_request.py +0 -0
  414. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/update_tenant_alert_email_group_request.py +0 -0
  415. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/update_tenant_invite_request.py +0 -0
  416. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/update_tenant_request.py +0 -0
  417. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/update_worker_request.py +0 -0
  418. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/user.py +0 -0
  419. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/user_change_password_request.py +0 -0
  420. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/user_login_request.py +0 -0
  421. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/user_register_request.py +0 -0
  422. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/user_tenant_memberships_list.py +0 -0
  423. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/user_tenant_public.py +0 -0
  424. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/webhook_worker.py +0 -0
  425. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/webhook_worker_create_request.py +0 -0
  426. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/webhook_worker_create_response.py +0 -0
  427. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/webhook_worker_created.py +0 -0
  428. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/webhook_worker_list_response.py +0 -0
  429. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/webhook_worker_request.py +0 -0
  430. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/webhook_worker_request_list_response.py +0 -0
  431. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/webhook_worker_request_method.py +0 -0
  432. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/worker.py +0 -0
  433. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/worker_label.py +0 -0
  434. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/worker_list.py +0 -0
  435. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/worker_runtime_info.py +0 -0
  436. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/worker_runtime_sdks.py +0 -0
  437. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/worker_type.py +0 -0
  438. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow.py +0 -0
  439. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_concurrency.py +0 -0
  440. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_deployment_config.py +0 -0
  441. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_kind.py +0 -0
  442. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_list.py +0 -0
  443. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_metrics.py +0 -0
  444. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_run.py +0 -0
  445. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_run_cancel200_response.py +0 -0
  446. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_run_list.py +0 -0
  447. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_run_order_by_direction.py +0 -0
  448. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_run_order_by_field.py +0 -0
  449. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_run_shape.py +0 -0
  450. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_run_status.py +0 -0
  451. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_run_triggered_by.py +0 -0
  452. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_runs_cancel_request.py +0 -0
  453. {hatchet_sdk-1.0.0a1/hatchet_sdk → hatchet_sdk-1.0.2/hatchet_sdk/v0}/clients/rest/models/workflow_runs_metrics.py +0 -0
  454. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_runs_metrics_counts.py +0 -0
  455. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_tag.py +0 -0
  456. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_trigger_cron_ref.py +0 -0
  457. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_trigger_event_ref.py +0 -0
  458. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_triggers.py +0 -0
  459. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_update_request.py +0 -0
  460. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_version.py +0 -0
  461. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_version_concurrency.py +0 -0
  462. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_version_definition.py +0 -0
  463. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_version_meta.py +0 -0
  464. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/models/workflow_workers_count.py +0 -0
  465. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/rest.py +0 -0
  466. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest/tenacity_utils.py +0 -0
  467. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/rest_client.py +0 -0
  468. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/run_event_listener.py +0 -0
  469. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/clients/workflow_listener.py +0 -0
  470. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/connection.py +0 -0
  471. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/context/__init__.py +0 -0
  472. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/context/context.py +0 -0
  473. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/context/worker_context.py +0 -0
  474. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/contracts/dispatcher_pb2.py +0 -0
  475. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/contracts/dispatcher_pb2.pyi +0 -0
  476. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/contracts/dispatcher_pb2_grpc.py +0 -0
  477. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/contracts/events_pb2.py +0 -0
  478. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/contracts/events_pb2.pyi +0 -0
  479. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/contracts/events_pb2_grpc.py +0 -0
  480. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/contracts/workflows_pb2.py +0 -0
  481. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/contracts/workflows_pb2.pyi +0 -0
  482. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/contracts/workflows_pb2_grpc.py +0 -0
  483. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/features/cron.py +0 -0
  484. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/features/scheduled.py +0 -0
  485. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/hatchet.py +0 -0
  486. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/labels.py +0 -0
  487. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/loader.py +0 -0
  488. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/logger.py +0 -0
  489. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/metadata.py +0 -0
  490. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/opentelemetry/instrumentor.py +0 -0
  491. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/rate_limit.py +0 -0
  492. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/semver.py +0 -0
  493. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/token.py +0 -0
  494. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/utils/aio_utils.py +0 -0
  495. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/utils/backoff.py +0 -0
  496. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/utils/types.py +0 -0
  497. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/utils/typing.py +0 -0
  498. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/v2/callable.py +0 -0
  499. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/v2/concurrency.py +0 -0
  500. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/v2/hatchet.py +0 -0
  501. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/worker/__init__.py +0 -0
  502. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/worker/action_listener_process.py +0 -0
  503. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/worker/runner/run_loop_manager.py +0 -0
  504. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/worker/runner/runner.py +0 -0
  505. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/worker/runner/utils/capture_logs.py +0 -0
  506. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/worker/runner/utils/error_with_traceback.py +0 -0
  507. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/worker/worker.py +0 -0
  508. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/workflow.py +0 -0
  509. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/v0/workflow_run.py +0 -0
  510. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/waits.py +0 -0
  511. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/worker/__init__.py +0 -0
  512. {hatchet_sdk-1.0.0a1 → hatchet_sdk-1.0.2}/hatchet_sdk/workflow_run.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hatchet-sdk
3
- Version: 1.0.0a1
3
+ Version: 1.0.2
4
4
  Summary:
5
5
  Author: Alexander Belanger
6
6
  Author-email: alexander@hatchet.run
@@ -29,6 +29,7 @@ Requires-Dist: prometheus-client (>=0.21.1,<0.22.0)
29
29
  Requires-Dist: protobuf (>=5.29.1,<6.0.0)
30
30
  Requires-Dist: pydantic (>=2.6.3,<3.0.0)
31
31
  Requires-Dist: pydantic-settings (>=2.7.1,<3.0.0)
32
+ Requires-Dist: pytest-timeout (>=2.3.1,<3.0.0)
32
33
  Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
33
34
  Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
34
35
  Requires-Dist: tenacity (>=8.4.1)
@@ -98,6 +98,7 @@ from hatchet_sdk.clients.rest.models.user_tenant_memberships_list import (
98
98
  UserTenantMembershipsList,
99
99
  )
100
100
  from hatchet_sdk.clients.rest.models.user_tenant_public import UserTenantPublic
101
+ from hatchet_sdk.clients.rest.models.v1_task_status import V1TaskStatus
101
102
  from hatchet_sdk.clients.rest.models.worker_list import WorkerList
102
103
  from hatchet_sdk.clients.rest.models.workflow import Workflow
103
104
  from hatchet_sdk.clients.rest.models.workflow_deployment_config import (
@@ -135,6 +136,7 @@ from hatchet_sdk.contracts.workflows_pb2 import (
135
136
  RateLimitDuration,
136
137
  WorkerLabelComparator,
137
138
  )
139
+ from hatchet_sdk.features.runs import BulkCancelReplayOpts, RunFilter
138
140
  from hatchet_sdk.hatchet import Hatchet
139
141
  from hatchet_sdk.runnables.task import Task
140
142
  from hatchet_sdk.runnables.types import (
@@ -264,4 +266,7 @@ __all__ = [
264
266
  "DurableContext",
265
267
  "RegisterDurableEventRequest",
266
268
  "TaskDefaults",
269
+ "BulkCancelReplayOpts",
270
+ "RunFilter",
271
+ "V1TaskStatus",
267
272
  ]
@@ -5,11 +5,18 @@ import grpc
5
5
  from hatchet_sdk.clients.admin import AdminClient
6
6
  from hatchet_sdk.clients.dispatcher.dispatcher import DispatcherClient
7
7
  from hatchet_sdk.clients.events import EventClient, new_event
8
- from hatchet_sdk.clients.rest_client import RestApi
9
8
  from hatchet_sdk.clients.run_event_listener import RunEventListenerClient
10
9
  from hatchet_sdk.clients.workflow_listener import PooledWorkflowRunListener
11
10
  from hatchet_sdk.config import ClientConfig
12
11
  from hatchet_sdk.connection import new_conn
12
+ from hatchet_sdk.features.cron import CronClient
13
+ from hatchet_sdk.features.logs import LogsClient
14
+ from hatchet_sdk.features.metrics import MetricsClient
15
+ from hatchet_sdk.features.rate_limits import RateLimitsClient
16
+ from hatchet_sdk.features.runs import RunsClient
17
+ from hatchet_sdk.features.scheduled import ScheduledClient
18
+ from hatchet_sdk.features.workers import WorkersClient
19
+ from hatchet_sdk.features.workflows import WorkflowsClient
13
20
 
14
21
 
15
22
  class Client:
@@ -20,7 +27,6 @@ class Client:
20
27
  admin_client: AdminClient | None = None,
21
28
  dispatcher_client: DispatcherClient | None = None,
22
29
  workflow_listener: PooledWorkflowRunListener | None | None = None,
23
- rest_client: RestApi | None = None,
24
30
  debug: bool = False,
25
31
  ):
26
32
  try:
@@ -35,10 +41,16 @@ class Client:
35
41
  self.admin = admin_client or AdminClient(config)
36
42
  self.dispatcher = dispatcher_client or DispatcherClient(config)
37
43
  self.event = event_client or new_event(conn, config)
38
- self.rest = rest_client or RestApi(
39
- config.server_url, config.token, config.tenant_id
40
- )
41
44
  self.listener = RunEventListenerClient(config)
42
45
  self.workflow_listener = workflow_listener
43
46
  self.logInterceptor = config.logger
44
47
  self.debug = debug
48
+
49
+ self.cron = CronClient(self.config)
50
+ self.logs = LogsClient(self.config)
51
+ self.metrics = MetricsClient(self.config)
52
+ self.rate_limits = RateLimitsClient(self.config)
53
+ self.runs = RunsClient(self.config)
54
+ self.scheduled = ScheduledClient(self.config)
55
+ self.workers = WorkersClient(self.config)
56
+ self.workflows = WorkflowsClient(self.config)
@@ -163,12 +163,6 @@ class AdminClient:
163
163
  workflow: workflow_protos.CreateWorkflowVersionRequest,
164
164
  overrides: workflow_protos.CreateWorkflowVersionRequest | None = None,
165
165
  ) -> workflow_protos.CreateWorkflowVersionResponse:
166
- ## IMPORTANT: The `pooled_workflow_listener` must be created 1) lazily, and not at `init` time, and 2) on the
167
- ## main thread. If 1) is not followed, you'll get an error about something being attached to the wrong event
168
- ## loop. If 2) is not followed, you'll get an error about the event loop not being set up.
169
- if not self.pooled_workflow_listener:
170
- self.pooled_workflow_listener = PooledWorkflowRunListener(self.config)
171
-
172
166
  return await asyncio.to_thread(self.put_workflow, name, workflow, overrides)
173
167
 
174
168
  @tenacity_retry
@@ -178,12 +172,6 @@ class AdminClient:
178
172
  limit: int,
179
173
  duration: RateLimitDuration = RateLimitDuration.SECOND,
180
174
  ) -> None:
181
- ## IMPORTANT: The `pooled_workflow_listener` must be created 1) lazily, and not at `init` time, and 2) on the
182
- ## main thread. If 1) is not followed, you'll get an error about something being attached to the wrong event
183
- ## loop. If 2) is not followed, you'll get an error about the event loop not being set up.
184
- if not self.pooled_workflow_listener:
185
- self.pooled_workflow_listener = PooledWorkflowRunListener(self.config)
186
-
187
175
  return await asyncio.to_thread(self.put_rate_limit, key, limit, duration)
188
176
 
189
177
  @tenacity_retry
@@ -194,12 +182,6 @@ class AdminClient:
194
182
  input: JSONSerializableMapping = {},
195
183
  options: ScheduleTriggerWorkflowOptions = ScheduleTriggerWorkflowOptions(),
196
184
  ) -> v0_workflow_protos.WorkflowVersion:
197
- ## IMPORTANT: The `pooled_workflow_listener` must be created 1) lazily, and not at `init` time, and 2) on the
198
- ## main thread. If 1) is not followed, you'll get an error about something being attached to the wrong event
199
- ## loop. If 2) is not followed, you'll get an error about the event loop not being set up.
200
- if not self.pooled_workflow_listener:
201
- self.pooled_workflow_listener = PooledWorkflowRunListener(self.config)
202
-
203
185
  return await asyncio.to_thread(
204
186
  self.schedule_workflow, name, schedules, input, options
205
187
  )
@@ -334,6 +316,7 @@ class AdminClient:
334
316
  except (grpc.RpcError, grpc.aio.AioRpcError) as e:
335
317
  if e.code() == grpc.StatusCode.ALREADY_EXISTS:
336
318
  raise DedupeViolationErr(e.details())
319
+ raise e
337
320
 
338
321
  return WorkflowRunRef(
339
322
  workflow_run_id=resp.workflow_run_id,
@@ -277,9 +277,7 @@ class ActionListener:
277
277
  )
278
278
 
279
279
  t.cancel()
280
-
281
- if listener:
282
- listener.cancel()
280
+ listener.cancel()
283
281
 
284
282
  break
285
283
 
@@ -421,7 +419,7 @@ class ActionListener:
421
419
  except Exception as e:
422
420
  logger.error(f"failed to unregister: {e}")
423
421
 
424
- if self.interrupt:
422
+ if self.interrupt: # type: ignore[truthy-bool]
425
423
  self.interrupt.set()
426
424
 
427
425
  def unregister(self) -> WorkerUnsubscribeRequest:
@@ -159,8 +159,8 @@ class DurableEventListener:
159
159
  )
160
160
 
161
161
  t.cancel()
162
- if self.listener:
163
- self.listener.cancel()
162
+ self.listener.cancel()
163
+
164
164
  await asyncio.sleep(
165
165
  DEFAULT_DURABLE_EVENT_LISTENER_RETRY_INTERVAL
166
166
  )
@@ -237,6 +237,8 @@ class DurableEventListener:
237
237
  del self.events[subscription_id]
238
238
 
239
239
  async def subscribe(self, task_id: str, signal_key: str) -> DurableEvent:
240
+ subscription_id: int | None = None
241
+
240
242
  try:
241
243
  # create a new subscription id, place a mutex on the counter
242
244
  async with self.subscription_counter_lock:
@@ -275,7 +277,8 @@ class DurableEventListener:
275
277
  except asyncio.CancelledError:
276
278
  raise
277
279
  finally:
278
- self.cleanup_subscription(subscription_id)
280
+ if subscription_id:
281
+ self.cleanup_subscription(subscription_id)
279
282
 
280
283
  async def _retry_subscribe(
281
284
  self,
@@ -86,8 +86,7 @@ class EventClient:
86
86
  namespaced_event_key = namespace + event_key
87
87
 
88
88
  try:
89
- meta = options.additional_metadata
90
- meta_bytes = None if meta is None else json.dumps(meta)
89
+ meta_bytes = json.dumps(options.additional_metadata)
91
90
  except Exception as e:
92
91
  raise ValueError(f"Error encoding meta: {e}")
93
92
 
@@ -22,13 +22,17 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
22
22
  from pydantic import BaseModel, ConfigDict
23
23
  from typing_extensions import Self
24
24
 
25
+ from hatchet_sdk.clients.rest.models.workflow_runs_metrics_counts import (
26
+ WorkflowRunsMetricsCounts,
27
+ )
28
+
25
29
 
26
30
  class WorkflowRunsMetrics(BaseModel):
27
31
  """
28
32
  WorkflowRunsMetrics
29
33
  """ # noqa: E501
30
34
 
31
- counts: Optional[Dict[str, Any]] = None
35
+ counts: Optional[WorkflowRunsMetricsCounts] = None
32
36
  __properties: ClassVar[List[str]] = ["counts"]
33
37
 
34
38
  model_config = ConfigDict(
@@ -0,0 +1,81 @@
1
+ import asyncio
2
+ from concurrent.futures import ThreadPoolExecutor
3
+ from typing import AsyncContextManager, Callable, Coroutine, ParamSpec, TypeVar
4
+
5
+ from hatchet_sdk.clients.rest.api_client import ApiClient
6
+ from hatchet_sdk.clients.rest.configuration import Configuration
7
+ from hatchet_sdk.config import ClientConfig
8
+ from hatchet_sdk.utils.typing import JSONSerializableMapping
9
+
10
+ ## Type variables to use with coroutines.
11
+ ## See https://stackoverflow.com/questions/73240620/the-right-way-to-type-hint-a-coroutine-function
12
+ ## Return type
13
+ R = TypeVar("R")
14
+
15
+ ## Yield type
16
+ Y = TypeVar("Y")
17
+
18
+ ## Send type
19
+ S = TypeVar("S")
20
+
21
+ P = ParamSpec("P")
22
+
23
+
24
+ def maybe_additional_metadata_to_kv(
25
+ additional_metadata: dict[str, str] | JSONSerializableMapping | None
26
+ ) -> list[str] | None:
27
+ if not additional_metadata:
28
+ return None
29
+
30
+ return [f"{k}:{v}" for k, v in additional_metadata.items()]
31
+
32
+
33
+ class BaseRestClient:
34
+ def __init__(self, config: ClientConfig) -> None:
35
+ self.tenant_id = config.tenant_id
36
+
37
+ self.client_config = config
38
+ self.api_config = Configuration(
39
+ host=config.server_url,
40
+ access_token=config.token,
41
+ )
42
+
43
+ self.api_config.datetime_format = "%Y-%m-%dT%H:%M:%S.%fZ"
44
+
45
+ def client(self) -> AsyncContextManager[ApiClient]:
46
+ return ApiClient(self.api_config)
47
+
48
+ def _run_async_function_do_not_use_directly(
49
+ self,
50
+ async_func: Callable[P, Coroutine[Y, S, R]],
51
+ *args: P.args,
52
+ **kwargs: P.kwargs,
53
+ ) -> R:
54
+ loop = asyncio.new_event_loop()
55
+ asyncio.set_event_loop(loop)
56
+ try:
57
+ return loop.run_until_complete(async_func(*args, **kwargs))
58
+ finally:
59
+ loop.close()
60
+
61
+ def _run_async_from_sync(
62
+ self,
63
+ async_func: Callable[P, Coroutine[Y, S, R]],
64
+ *args: P.args,
65
+ **kwargs: P.kwargs,
66
+ ) -> R:
67
+ try:
68
+ loop = asyncio.get_event_loop()
69
+ except RuntimeError:
70
+ loop = None
71
+
72
+ if loop and loop.is_running():
73
+ return loop.run_until_complete(async_func(*args, **kwargs))
74
+ else:
75
+ with ThreadPoolExecutor() as executor:
76
+ future = executor.submit(
77
+ lambda: self._run_async_function_do_not_use_directly(
78
+ async_func, *args, **kwargs
79
+ )
80
+ )
81
+ return future.result()
@@ -132,8 +132,8 @@ class PooledWorkflowRunListener:
132
132
  )
133
133
 
134
134
  t.cancel()
135
- if self.listener:
136
- self.listener.cancel()
135
+ self.listener.cancel()
136
+
137
137
  await asyncio.sleep(
138
138
  DEFAULT_WORKFLOW_LISTENER_RETRY_INTERVAL
139
139
  )
@@ -203,6 +203,8 @@ class PooledWorkflowRunListener:
203
203
  del self.events[subscription_id]
204
204
 
205
205
  async def subscribe(self, workflow_run_id: str) -> WorkflowRunEvent:
206
+ subscription_id: int | None = None
207
+
206
208
  try:
207
209
  # create a new subscription id, place a mutex on the counter
208
210
  await self.subscription_counter_lock.acquire()
@@ -234,7 +236,8 @@ class PooledWorkflowRunListener:
234
236
  except asyncio.CancelledError:
235
237
  raise
236
238
  finally:
237
- self.cleanup_subscription(subscription_id)
239
+ if subscription_id:
240
+ self.cleanup_subscription(subscription_id)
238
241
 
239
242
  async def result(self, workflow_run_id: str) -> dict[str, Any]:
240
243
  from hatchet_sdk.clients.admin import DedupeViolationErr
@@ -17,9 +17,6 @@ from hatchet_sdk.clients.durable_event_listener import (
17
17
  RegisterDurableEventRequest,
18
18
  )
19
19
  from hatchet_sdk.clients.events import EventClient
20
- from hatchet_sdk.clients.rest_client import RestApi
21
- from hatchet_sdk.clients.run_event_listener import RunEventListenerClient
22
- from hatchet_sdk.clients.workflow_listener import PooledWorkflowRunListener
23
20
  from hatchet_sdk.context.worker_context import WorkerContext
24
21
  from hatchet_sdk.logger import logger
25
22
  from hatchet_sdk.utils.timedelta_to_expression import Duration, timedelta_to_expr
@@ -53,12 +50,8 @@ class Context:
53
50
  dispatcher_client: DispatcherClient,
54
51
  admin_client: AdminClient,
55
52
  event_client: EventClient,
56
- rest_client: RestApi,
57
- workflow_listener: PooledWorkflowRunListener | None,
58
53
  durable_event_listener: DurableEventListener | None,
59
- workflow_run_event_listener: RunEventListenerClient,
60
54
  worker: WorkerContext,
61
- namespace: str = "",
62
55
  validator_registry: dict[str, WorkflowValidator] = {},
63
56
  ):
64
57
  self.worker = worker
@@ -68,16 +61,12 @@ class Context:
68
61
 
69
62
  self.action = action
70
63
 
71
- self.step_run_id: str = action.step_run_id
64
+ self.step_run_id = action.step_run_id
72
65
  self.exit_flag = False
73
66
  self.dispatcher_client = dispatcher_client
74
67
  self.admin_client = admin_client
75
68
  self.event_client = event_client
76
- self.rest_client = rest_client
77
- self.workflow_listener = workflow_listener
78
69
  self.durable_event_listener = durable_event_listener
79
- self.workflow_run_event_listener = workflow_run_event_listener
80
- self.namespace = namespace
81
70
 
82
71
  # FIXME: this limits the number of concurrent log requests to 1, which means we can do about
83
72
  # 100 log lines per second but this depends on network.
@@ -1,8 +1,11 @@
1
- from typing import List, Union
2
-
3
1
  from pydantic import BaseModel, Field, field_validator
4
2
 
5
- from hatchet_sdk.client import Client
3
+ from hatchet_sdk.clients.rest.api.workflow_api import WorkflowApi
4
+ from hatchet_sdk.clients.rest.api.workflow_run_api import WorkflowRunApi
5
+ from hatchet_sdk.clients.rest.api_client import ApiClient
6
+ from hatchet_sdk.clients.rest.models.create_cron_workflow_trigger_request import (
7
+ CreateCronWorkflowTriggerRequest,
8
+ )
6
9
  from hatchet_sdk.clients.rest.models.cron_workflows import CronWorkflows
7
10
  from hatchet_sdk.clients.rest.models.cron_workflows_list import CronWorkflowsList
8
11
  from hatchet_sdk.clients.rest.models.cron_workflows_order_by_field import (
@@ -11,6 +14,10 @@ from hatchet_sdk.clients.rest.models.cron_workflows_order_by_field import (
11
14
  from hatchet_sdk.clients.rest.models.workflow_run_order_by_direction import (
12
15
  WorkflowRunOrderByDirection,
13
16
  )
17
+ from hatchet_sdk.clients.v1.api_client import (
18
+ BaseRestClient,
19
+ maybe_additional_metadata_to_kv,
20
+ )
14
21
  from hatchet_sdk.utils.typing import JSONSerializableMapping
15
22
 
16
23
 
@@ -62,27 +69,14 @@ class CreateCronTriggerConfig(BaseModel):
62
69
  return v
63
70
 
64
71
 
65
- class CronClient:
66
- """
67
- Client for managing workflow cron triggers synchronously.
68
-
69
- Attributes:
70
- _client (Client): The underlying client used to interact with the REST API.
71
- aio (CronClientAsync): Asynchronous counterpart of CronClient.
72
- """
73
-
74
- _client: Client
75
-
76
- def __init__(self, _client: Client):
77
- """
78
- Initializes the CronClient with a given Client instance.
72
+ class CronClient(BaseRestClient):
73
+ def _wra(self, client: ApiClient) -> WorkflowRunApi:
74
+ return WorkflowRunApi(client)
79
75
 
80
- Args:
81
- _client (Client): The client instance to be used for REST interactions.
82
- """
83
- self._client = _client
76
+ def _wa(self, client: ApiClient) -> WorkflowApi:
77
+ return WorkflowApi(client)
84
78
 
85
- def create(
79
+ async def aio_create(
86
80
  self,
87
81
  workflow_name: str,
88
82
  cron_name: str,
@@ -91,7 +85,7 @@ class CronClient:
91
85
  additional_metadata: JSONSerializableMapping,
92
86
  ) -> CronWorkflows:
93
87
  """
94
- Creates a new workflow cron trigger.
88
+ Asynchronously creates a new workflow cron trigger.
95
89
 
96
90
  Args:
97
91
  workflow_name (str): The name of the workflow to trigger.
@@ -107,38 +101,61 @@ class CronClient:
107
101
  expression=expression, input=input, additional_metadata=additional_metadata
108
102
  )
109
103
 
110
- return self._client.rest.cron_create(
104
+ async with self.client() as client:
105
+ return await self._wra(client).cron_workflow_trigger_create(
106
+ tenant=self.client_config.tenant_id,
107
+ workflow=workflow_name,
108
+ create_cron_workflow_trigger_request=CreateCronWorkflowTriggerRequest(
109
+ cronName=cron_name,
110
+ cronExpression=validated_input.expression,
111
+ input=dict(validated_input.input),
112
+ additionalMetadata=dict(validated_input.additional_metadata),
113
+ ),
114
+ )
115
+
116
+ def create(
117
+ self,
118
+ workflow_name: str,
119
+ cron_name: str,
120
+ expression: str,
121
+ input: JSONSerializableMapping,
122
+ additional_metadata: JSONSerializableMapping,
123
+ ) -> CronWorkflows:
124
+ return self._run_async_from_sync(
125
+ self.aio_create,
111
126
  workflow_name,
112
127
  cron_name,
113
- validated_input.expression,
114
- validated_input.input,
115
- validated_input.additional_metadata,
128
+ expression,
129
+ input,
130
+ additional_metadata,
116
131
  )
117
132
 
118
- def delete(self, cron_trigger: Union[str, CronWorkflows]) -> None:
133
+ async def aio_delete(self, cron_id: str) -> None:
119
134
  """
120
- Deletes a workflow cron trigger.
135
+ Asynchronously deletes a workflow cron trigger.
121
136
 
122
137
  Args:
123
- cron_trigger (Union[str, CronWorkflows]): The cron trigger ID or CronWorkflows instance to delete.
138
+ cron_id (str): The cron trigger ID or CronWorkflows instance to delete.
124
139
  """
125
- self._client.rest.cron_delete(
126
- cron_trigger.metadata.id
127
- if isinstance(cron_trigger, CronWorkflows)
128
- else cron_trigger
129
- )
140
+ async with self.client() as client:
141
+ await self._wa(client).workflow_cron_delete(
142
+ tenant=self.client_config.tenant_id, cron_workflow=str(cron_id)
143
+ )
130
144
 
131
- def list(
145
+ def delete(self, cron_id: str) -> None:
146
+ return self._run_async_from_sync(self.aio_delete, cron_id)
147
+
148
+ async def aio_list(
132
149
  self,
133
150
  offset: int | None = None,
134
151
  limit: int | None = None,
135
152
  workflow_id: str | None = None,
136
- additional_metadata: list[str] | None = None,
153
+ additional_metadata: JSONSerializableMapping | None = None,
137
154
  order_by_field: CronWorkflowsOrderByField | None = None,
138
155
  order_by_direction: WorkflowRunOrderByDirection | None = None,
139
156
  ) -> CronWorkflowsList:
140
157
  """
141
- Retrieves a list of all workflow cron triggers matching the criteria.
158
+ Asynchronously retrieves a list of all workflow cron triggers matching the criteria.
142
159
 
143
160
  Args:
144
161
  offset (int | None): The offset to start the list from.
@@ -151,88 +168,30 @@ class CronClient:
151
168
  Returns:
152
169
  CronWorkflowsList: A list of cron workflows.
153
170
  """
154
- return self._client.rest.cron_list(
155
- offset=offset,
156
- limit=limit,
157
- workflow_id=workflow_id,
158
- additional_metadata=additional_metadata,
159
- order_by_field=order_by_field,
160
- order_by_direction=order_by_direction,
161
- )
162
-
163
- def get(self, cron_trigger: Union[str, CronWorkflows]) -> CronWorkflows:
164
- """
165
- Retrieves a specific workflow cron trigger by ID.
166
-
167
- Args:
168
- cron_trigger (Union[str, CronWorkflows]): The cron trigger ID or CronWorkflows instance to retrieve.
169
-
170
- Returns:
171
- CronWorkflows: The requested cron workflow instance.
172
- """
173
- return self._client.rest.cron_get(
174
- cron_trigger.metadata.id
175
- if isinstance(cron_trigger, CronWorkflows)
176
- else cron_trigger
177
- )
178
-
179
- async def aio_create(
180
- self,
181
- workflow_name: str,
182
- cron_name: str,
183
- expression: str,
184
- input: JSONSerializableMapping,
185
- additional_metadata: JSONSerializableMapping,
186
- ) -> CronWorkflows:
187
- """
188
- Asynchronously creates a new workflow cron trigger.
189
-
190
- Args:
191
- workflow_name (str): The name of the workflow to trigger.
192
- cron_name (str): The name of the cron trigger.
193
- expression (str): The cron expression defining the schedule.
194
- input (dict): The input data for the cron workflow.
195
- additional_metadata (dict[str, str]): Additional metadata associated with the cron trigger (e.g. {"key1": "value1", "key2": "value2"}).
196
-
197
- Returns:
198
- CronWorkflows: The created cron workflow instance.
199
- """
200
- validated_input = CreateCronTriggerConfig(
201
- expression=expression, input=input, additional_metadata=additional_metadata
202
- )
203
-
204
- return await self._client.rest.aio_create_cron(
205
- workflow_name=workflow_name,
206
- cron_name=cron_name,
207
- expression=validated_input.expression,
208
- input=validated_input.input,
209
- additional_metadata=validated_input.additional_metadata,
210
- )
211
-
212
- async def aio_delete(self, cron_trigger: Union[str, CronWorkflows]) -> None:
213
- """
214
- Asynchronously deletes a workflow cron trigger.
215
-
216
- Args:
217
- cron_trigger (Union[str, CronWorkflows]): The cron trigger ID or CronWorkflows instance to delete.
218
- """
219
- await self._client.rest.aio_delete_cron(
220
- cron_trigger.metadata.id
221
- if isinstance(cron_trigger, CronWorkflows)
222
- else cron_trigger
223
- )
171
+ async with self.client() as client:
172
+ return await self._wa(client).cron_workflow_list(
173
+ tenant=self.client_config.tenant_id,
174
+ offset=offset,
175
+ limit=limit,
176
+ workflow_id=workflow_id,
177
+ additional_metadata=maybe_additional_metadata_to_kv(
178
+ additional_metadata
179
+ ),
180
+ order_by_field=order_by_field,
181
+ order_by_direction=order_by_direction,
182
+ )
224
183
 
225
- async def aio_list(
184
+ def list(
226
185
  self,
227
186
  offset: int | None = None,
228
187
  limit: int | None = None,
229
188
  workflow_id: str | None = None,
230
- additional_metadata: List[str] | None = None,
189
+ additional_metadata: JSONSerializableMapping | None = None,
231
190
  order_by_field: CronWorkflowsOrderByField | None = None,
232
191
  order_by_direction: WorkflowRunOrderByDirection | None = None,
233
192
  ) -> CronWorkflowsList:
234
193
  """
235
- Asynchronously retrieves a list of all workflow cron triggers matching the criteria.
194
+ Synchronously retrieves a list of all workflow cron triggers matching the criteria.
236
195
 
237
196
  Args:
238
197
  offset (int | None): The offset to start the list from.
@@ -245,7 +204,8 @@ class CronClient:
245
204
  Returns:
246
205
  CronWorkflowsList: A list of cron workflows.
247
206
  """
248
- return await self._client.rest.aio_list_crons(
207
+ return self._run_async_from_sync(
208
+ self.aio_list,
249
209
  offset=offset,
250
210
  limit=limit,
251
211
  workflow_id=workflow_id,
@@ -254,19 +214,29 @@ class CronClient:
254
214
  order_by_direction=order_by_direction,
255
215
  )
256
216
 
257
- async def aio_get(self, cron_trigger: Union[str, CronWorkflows]) -> CronWorkflows:
217
+ async def aio_get(self, cron_id: str) -> CronWorkflows:
258
218
  """
259
219
  Asynchronously retrieves a specific workflow cron trigger by ID.
260
220
 
261
221
  Args:
262
- cron_trigger (Union[str, CronWorkflows]): The cron trigger ID or CronWorkflows instance to retrieve.
222
+ cron_id (str): The cron trigger ID or CronWorkflows instance to retrieve.
263
223
 
264
224
  Returns:
265
225
  CronWorkflows: The requested cron workflow instance.
266
226
  """
227
+ async with self.client() as client:
228
+ return await self._wa(client).workflow_cron_get(
229
+ tenant=self.client_config.tenant_id, cron_workflow=str(cron_id)
230
+ )
231
+
232
+ def get(self, cron_id: str) -> CronWorkflows:
233
+ """
234
+ Synchronously retrieves a specific workflow cron trigger by ID.
267
235
 
268
- return await self._client.rest.aio_get_cron(
269
- cron_trigger.metadata.id
270
- if isinstance(cron_trigger, CronWorkflows)
271
- else cron_trigger
272
- )
236
+ Args:
237
+ cron_id (str): The cron trigger ID or CronWorkflows instance to retrieve.
238
+
239
+ Returns:
240
+ CronWorkflows: The requested cron workflow instance.
241
+ """
242
+ return self._run_async_from_sync(self.aio_get, cron_id)