hatchet-sdk 0.42.2__tar.gz → 0.42.4__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.
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/PKG-INFO +2 -1
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/admin.py +6 -6
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/dispatcher/dispatcher.py +22 -15
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/events.py +3 -3
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/__init__.py +9 -3
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/event_api.py +6 -8
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/workflow_api.py +69 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/__init__.py +9 -3
- hatchet_sdk-0.42.4/hatchet_sdk/clients/rest/models/concurrency_limit_strategy.py +39 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/cron_workflows.py +3 -16
- hatchet_sdk-0.42.4/hatchet_sdk/clients/rest/models/cron_workflows_method.py +37 -0
- hatchet_sdk-0.42.4/hatchet_sdk/clients/rest/models/events.py +110 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/scheduled_workflows.py +5 -9
- hatchet_sdk-0.42.4/hatchet_sdk/clients/rest/models/scheduled_workflows_method.py +37 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/worker.py +2 -10
- hatchet_sdk-0.42.4/hatchet_sdk/clients/rest/models/worker_type.py +38 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_concurrency.py +6 -13
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_list.py +4 -4
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_run.py +10 -10
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/context/context.py +9 -7
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/context/worker_context.py +5 -5
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/contracts/dispatcher_pb2.pyi +0 -2
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/contracts/events_pb2.pyi +0 -2
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/contracts/workflows_pb2.pyi +0 -2
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/hatchet.py +67 -54
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/labels.py +1 -1
- hatchet_sdk-0.42.4/hatchet_sdk/rate_limit.py +126 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/utils/aio_utils.py +13 -4
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/utils/typing.py +4 -1
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/v2/callable.py +24 -24
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/v2/concurrency.py +10 -8
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/v2/hatchet.py +38 -36
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/worker/runner/runner.py +1 -1
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/worker/worker.py +16 -9
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/workflow.py +21 -9
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/pyproject.toml +10 -3
- hatchet_sdk-0.42.2/hatchet_sdk/rate_limit.py +0 -13
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/README.md +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/__init__.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/client.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/dispatcher/action_listener.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/event_ts.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/__init__.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/api_token_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/default_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/github_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/healthcheck_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/log_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/metadata_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/rate_limits_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/slack_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/sns_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/step_run_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/tenant_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/user_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/worker_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/workflow_run_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api/workflow_runs_api.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api_client.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/api_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/configuration.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/exceptions.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/accept_invite_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/api_error.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/api_errors.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/api_meta.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/api_meta_auth.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/api_meta_integration.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/api_meta_posthog.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/api_resource_meta.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/api_token.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/bulk_create_event_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/bulk_create_event_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/cancel_event_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/cancel_step_run_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/create_api_token_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/create_api_token_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/create_cron_workflow_trigger_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/create_event_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/create_pull_request_from_step_run.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/create_sns_integration_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/create_tenant_alert_email_group_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/create_tenant_invite_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/create_tenant_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/cron_workflows_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/cron_workflows_order_by_field.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/event.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/event_data.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/event_key_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/event_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/event_order_by_direction.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/event_order_by_field.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/event_update_cancel200_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/event_workflow_run_summary.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/get_step_run_diff_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/github_app_installation.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/github_branch.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/github_repo.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/job.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/job_run.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/job_run_status.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/link_github_repository_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/list_api_tokens_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/list_github_app_installations_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/list_pull_requests_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/list_slack_webhooks.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/list_sns_integrations.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/log_line.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/log_line_level.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/log_line_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/log_line_order_by_direction.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/log_line_order_by_field.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/pagination_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/pull_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/pull_request_state.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/queue_metrics.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/rate_limit.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/rate_limit_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/rate_limit_order_by_direction.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/rate_limit_order_by_field.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/recent_step_runs.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/reject_invite_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/replay_event_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/replay_workflow_runs_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/replay_workflow_runs_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/rerun_step_run_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/schedule_workflow_run_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/scheduled_run_status.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/scheduled_workflows_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/scheduled_workflows_order_by_field.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/semaphore_slots.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/slack_webhook.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/sns_integration.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step_run.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step_run_archive.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step_run_archive_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step_run_diff.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step_run_event.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step_run_event_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step_run_event_reason.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step_run_event_severity.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/step_run_status.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_alert_email_group.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_alert_email_group_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_alerting_settings.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_invite.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_invite_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_member.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_member_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_member_role.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_queue_metrics.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_resource.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_resource_limit.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_resource_policy.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/tenant_step_run_queue_metrics.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/trigger_workflow_run_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/update_tenant_alert_email_group_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/update_tenant_invite_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/update_tenant_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/update_worker_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/user.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/user_change_password_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/user_login_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/user_register_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/user_tenant_memberships_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/user_tenant_public.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/webhook_worker.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/webhook_worker_create_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/webhook_worker_create_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/webhook_worker_created.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/webhook_worker_list_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/webhook_worker_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/webhook_worker_request_list_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/webhook_worker_request_method.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/worker_label.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/worker_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/worker_runtime_info.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/worker_runtime_sdks.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_deployment_config.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_kind.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_metrics.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_run_cancel200_response.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_run_list.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_run_order_by_direction.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_run_order_by_field.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_run_shape.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_run_status.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_run_triggered_by.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_runs_cancel_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_runs_metrics.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_runs_metrics_counts.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_tag.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_trigger_cron_ref.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_trigger_event_ref.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_triggers.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_update_request.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_version.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_version_concurrency.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_version_definition.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_version_meta.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/models/workflow_workers_count.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/rest.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest/tenacity_utils.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/rest_client.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/run_event_listener.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/clients/workflow_listener.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/connection.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/context/__init__.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/contracts/dispatcher_pb2.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/contracts/dispatcher_pb2_grpc.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/contracts/events_pb2.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/contracts/events_pb2_grpc.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/contracts/workflows_pb2.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/contracts/workflows_pb2_grpc.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/features/cron.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/features/scheduled.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/loader.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/logger.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/metadata.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/semver.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/token.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/utils/backoff.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/utils/serialization.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/utils/tracing.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/utils/types.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/worker/__init__.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/worker/action_listener_process.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/worker/runner/run_loop_manager.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/worker/runner/utils/capture_logs.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/worker/runner/utils/error_with_traceback.py +0 -0
- {hatchet_sdk-0.42.2 → hatchet_sdk-0.42.4}/hatchet_sdk/workflow_run.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hatchet-sdk
|
|
3
|
-
Version: 0.42.
|
|
3
|
+
Version: 0.42.4
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Alexander Belanger
|
|
6
6
|
Author-email: alexander@hatchet.run
|
|
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
12
12
|
Requires-Dist: aiohttp (>=3.10.5,<4.0.0)
|
|
13
13
|
Requires-Dist: aiohttp-retry (>=2.8.3,<3.0.0)
|
|
14
14
|
Requires-Dist: aiostream (>=0.5.2,<0.6.0)
|
|
15
|
+
Requires-Dist: cel-python (>=0.1.5,<0.2.0)
|
|
15
16
|
Requires-Dist: grpcio (>=1.64.1,<2.0.0)
|
|
16
17
|
Requires-Dist: grpcio-tools (>=1.60.0,<2.0.0)
|
|
17
18
|
Requires-Dist: loguru (>=0.7.2,<0.8.0)
|
|
@@ -41,7 +41,7 @@ def new_admin(config: ClientConfig):
|
|
|
41
41
|
return AdminClient(config)
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
class ScheduleTriggerWorkflowOptions(TypedDict):
|
|
44
|
+
class ScheduleTriggerWorkflowOptions(TypedDict, total=False):
|
|
45
45
|
parent_id: Optional[str]
|
|
46
46
|
parent_step_run_id: Optional[str]
|
|
47
47
|
child_index: Optional[int]
|
|
@@ -49,25 +49,25 @@ class ScheduleTriggerWorkflowOptions(TypedDict):
|
|
|
49
49
|
namespace: Optional[str]
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
class ChildTriggerWorkflowOptions(TypedDict):
|
|
52
|
+
class ChildTriggerWorkflowOptions(TypedDict, total=False):
|
|
53
53
|
additional_metadata: Dict[str, str] | None = None
|
|
54
54
|
sticky: bool | None = None
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
class ChildWorkflowRunDict(TypedDict):
|
|
57
|
+
class ChildWorkflowRunDict(TypedDict, total=False):
|
|
58
58
|
workflow_name: str
|
|
59
59
|
input: Any
|
|
60
60
|
options: ChildTriggerWorkflowOptions
|
|
61
61
|
key: str | None = None
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
class TriggerWorkflowOptions(ScheduleTriggerWorkflowOptions,
|
|
64
|
+
class TriggerWorkflowOptions(ScheduleTriggerWorkflowOptions, total=False):
|
|
65
65
|
additional_metadata: Dict[str, str] | None = None
|
|
66
66
|
desired_worker_id: str | None = None
|
|
67
67
|
namespace: str | None = None
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
class WorkflowRunDict(TypedDict):
|
|
70
|
+
class WorkflowRunDict(TypedDict, total=False):
|
|
71
71
|
workflow_name: str
|
|
72
72
|
input: Any
|
|
73
73
|
options: TriggerWorkflowOptions | None
|
|
@@ -425,7 +425,7 @@ class AdminClient(AdminClientBase):
|
|
|
425
425
|
self,
|
|
426
426
|
key: str,
|
|
427
427
|
limit: int,
|
|
428
|
-
duration: RateLimitDuration = RateLimitDuration.SECOND,
|
|
428
|
+
duration: Union[RateLimitDuration.Value, str] = RateLimitDuration.SECOND,
|
|
429
429
|
):
|
|
430
430
|
try:
|
|
431
431
|
self.client.PutRateLimit(
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Any, cast
|
|
2
|
+
|
|
1
3
|
from google.protobuf.timestamp_pb2 import Timestamp
|
|
2
4
|
|
|
3
5
|
from hatchet_sdk.clients.dispatcher.action_listener import (
|
|
@@ -31,7 +33,7 @@ from ...metadata import get_metadata
|
|
|
31
33
|
DEFAULT_REGISTER_TIMEOUT = 30
|
|
32
34
|
|
|
33
35
|
|
|
34
|
-
def new_dispatcher(config: ClientConfig):
|
|
36
|
+
def new_dispatcher(config: ClientConfig) -> "DispatcherClient":
|
|
35
37
|
return DispatcherClient(config=config)
|
|
36
38
|
|
|
37
39
|
|
|
@@ -40,10 +42,10 @@ class DispatcherClient:
|
|
|
40
42
|
|
|
41
43
|
def __init__(self, config: ClientConfig):
|
|
42
44
|
conn = new_conn(config)
|
|
43
|
-
self.client = DispatcherStub(conn)
|
|
45
|
+
self.client = DispatcherStub(conn) # type: ignore[no-untyped-call]
|
|
44
46
|
|
|
45
47
|
aio_conn = new_conn(config, True)
|
|
46
|
-
self.aio_client = DispatcherStub(aio_conn)
|
|
48
|
+
self.aio_client = DispatcherStub(aio_conn) # type: ignore[no-untyped-call]
|
|
47
49
|
self.token = config.token
|
|
48
50
|
self.config = config
|
|
49
51
|
|
|
@@ -67,7 +69,7 @@ class DispatcherClient:
|
|
|
67
69
|
|
|
68
70
|
async def send_step_action_event(
|
|
69
71
|
self, action: Action, event_type: StepActionEventType, payload: str
|
|
70
|
-
):
|
|
72
|
+
) -> Any:
|
|
71
73
|
try:
|
|
72
74
|
return await self._try_send_step_action_event(action, event_type, payload)
|
|
73
75
|
except Exception as e:
|
|
@@ -87,7 +89,7 @@ class DispatcherClient:
|
|
|
87
89
|
@tenacity_retry
|
|
88
90
|
async def _try_send_step_action_event(
|
|
89
91
|
self, action: Action, event_type: StepActionEventType, payload: str
|
|
90
|
-
):
|
|
92
|
+
) -> Any:
|
|
91
93
|
eventTimestamp = Timestamp()
|
|
92
94
|
eventTimestamp.GetCurrentTime()
|
|
93
95
|
|
|
@@ -103,6 +105,7 @@ class DispatcherClient:
|
|
|
103
105
|
eventPayload=payload,
|
|
104
106
|
)
|
|
105
107
|
|
|
108
|
+
## TODO: What does this return?
|
|
106
109
|
return await self.aio_client.SendStepActionEvent(
|
|
107
110
|
event,
|
|
108
111
|
metadata=get_metadata(self.token),
|
|
@@ -110,7 +113,7 @@ class DispatcherClient:
|
|
|
110
113
|
|
|
111
114
|
async def send_group_key_action_event(
|
|
112
115
|
self, action: Action, event_type: GroupKeyActionEventType, payload: str
|
|
113
|
-
):
|
|
116
|
+
) -> Any:
|
|
114
117
|
eventTimestamp = Timestamp()
|
|
115
118
|
eventTimestamp.GetCurrentTime()
|
|
116
119
|
|
|
@@ -124,19 +127,21 @@ class DispatcherClient:
|
|
|
124
127
|
eventPayload=payload,
|
|
125
128
|
)
|
|
126
129
|
|
|
130
|
+
## TODO: What does this return?
|
|
127
131
|
return await self.aio_client.SendGroupKeyActionEvent(
|
|
128
132
|
event,
|
|
129
133
|
metadata=get_metadata(self.token),
|
|
130
134
|
)
|
|
131
135
|
|
|
132
|
-
def put_overrides_data(self, data: OverridesData):
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
+
def put_overrides_data(self, data: OverridesData) -> ActionEventResponse:
|
|
137
|
+
return cast(
|
|
138
|
+
ActionEventResponse,
|
|
139
|
+
self.client.PutOverridesData(
|
|
140
|
+
data,
|
|
141
|
+
metadata=get_metadata(self.token),
|
|
142
|
+
),
|
|
136
143
|
)
|
|
137
144
|
|
|
138
|
-
return response
|
|
139
|
-
|
|
140
145
|
def release_slot(self, step_run_id: str) -> None:
|
|
141
146
|
self.client.ReleaseSlot(
|
|
142
147
|
ReleaseSlotRequest(stepRunId=step_run_id),
|
|
@@ -154,7 +159,9 @@ class DispatcherClient:
|
|
|
154
159
|
metadata=get_metadata(self.token),
|
|
155
160
|
)
|
|
156
161
|
|
|
157
|
-
def upsert_worker_labels(
|
|
162
|
+
def upsert_worker_labels(
|
|
163
|
+
self, worker_id: str | None, labels: dict[str, str | int]
|
|
164
|
+
) -> None:
|
|
158
165
|
worker_labels = {}
|
|
159
166
|
|
|
160
167
|
for key, value in labels.items():
|
|
@@ -171,9 +178,9 @@ class DispatcherClient:
|
|
|
171
178
|
|
|
172
179
|
async def async_upsert_worker_labels(
|
|
173
180
|
self,
|
|
174
|
-
worker_id: str,
|
|
181
|
+
worker_id: str | None,
|
|
175
182
|
labels: dict[str, str | int],
|
|
176
|
-
):
|
|
183
|
+
) -> None:
|
|
177
184
|
worker_labels = {}
|
|
178
185
|
|
|
179
186
|
for key, value in labels.items():
|
|
@@ -43,16 +43,16 @@ def proto_timestamp_now():
|
|
|
43
43
|
return timestamp_pb2.Timestamp(seconds=seconds, nanos=nanos)
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
class PushEventOptions(TypedDict):
|
|
46
|
+
class PushEventOptions(TypedDict, total=False):
|
|
47
47
|
additional_metadata: Dict[str, str] | None = None
|
|
48
48
|
namespace: str | None = None
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
class BulkPushEventOptions(TypedDict):
|
|
51
|
+
class BulkPushEventOptions(TypedDict, total=False):
|
|
52
52
|
namespace: str | None = None
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
class BulkPushEventWithMetadata(TypedDict):
|
|
55
|
+
class BulkPushEventWithMetadata(TypedDict, total=False):
|
|
56
56
|
key: str
|
|
57
57
|
payload: Any
|
|
58
58
|
additional_metadata: Optional[Dict[str, Any]] # Optional metadata
|
|
@@ -60,10 +60,10 @@ from hatchet_sdk.clients.rest.models.api_token import APIToken
|
|
|
60
60
|
from hatchet_sdk.clients.rest.models.bulk_create_event_request import (
|
|
61
61
|
BulkCreateEventRequest,
|
|
62
62
|
)
|
|
63
|
-
from hatchet_sdk.clients.rest.models.bulk_create_event_response import (
|
|
64
|
-
BulkCreateEventResponse,
|
|
65
|
-
)
|
|
66
63
|
from hatchet_sdk.clients.rest.models.cancel_event_request import CancelEventRequest
|
|
64
|
+
from hatchet_sdk.clients.rest.models.concurrency_limit_strategy import (
|
|
65
|
+
ConcurrencyLimitStrategy,
|
|
66
|
+
)
|
|
67
67
|
from hatchet_sdk.clients.rest.models.create_api_token_request import (
|
|
68
68
|
CreateAPITokenRequest,
|
|
69
69
|
)
|
|
@@ -89,6 +89,7 @@ from hatchet_sdk.clients.rest.models.create_tenant_invite_request import (
|
|
|
89
89
|
from hatchet_sdk.clients.rest.models.create_tenant_request import CreateTenantRequest
|
|
90
90
|
from hatchet_sdk.clients.rest.models.cron_workflows import CronWorkflows
|
|
91
91
|
from hatchet_sdk.clients.rest.models.cron_workflows_list import CronWorkflowsList
|
|
92
|
+
from hatchet_sdk.clients.rest.models.cron_workflows_method import CronWorkflowsMethod
|
|
92
93
|
from hatchet_sdk.clients.rest.models.cron_workflows_order_by_field import (
|
|
93
94
|
CronWorkflowsOrderByField,
|
|
94
95
|
)
|
|
@@ -106,6 +107,7 @@ from hatchet_sdk.clients.rest.models.event_update_cancel200_response import (
|
|
|
106
107
|
from hatchet_sdk.clients.rest.models.event_workflow_run_summary import (
|
|
107
108
|
EventWorkflowRunSummary,
|
|
108
109
|
)
|
|
110
|
+
from hatchet_sdk.clients.rest.models.events import Events
|
|
109
111
|
from hatchet_sdk.clients.rest.models.get_step_run_diff_response import (
|
|
110
112
|
GetStepRunDiffResponse,
|
|
111
113
|
)
|
|
@@ -157,6 +159,9 @@ from hatchet_sdk.clients.rest.models.scheduled_workflows import ScheduledWorkflo
|
|
|
157
159
|
from hatchet_sdk.clients.rest.models.scheduled_workflows_list import (
|
|
158
160
|
ScheduledWorkflowsList,
|
|
159
161
|
)
|
|
162
|
+
from hatchet_sdk.clients.rest.models.scheduled_workflows_method import (
|
|
163
|
+
ScheduledWorkflowsMethod,
|
|
164
|
+
)
|
|
160
165
|
from hatchet_sdk.clients.rest.models.scheduled_workflows_order_by_field import (
|
|
161
166
|
ScheduledWorkflowsOrderByField,
|
|
162
167
|
)
|
|
@@ -240,6 +245,7 @@ from hatchet_sdk.clients.rest.models.worker_label import WorkerLabel
|
|
|
240
245
|
from hatchet_sdk.clients.rest.models.worker_list import WorkerList
|
|
241
246
|
from hatchet_sdk.clients.rest.models.worker_runtime_info import WorkerRuntimeInfo
|
|
242
247
|
from hatchet_sdk.clients.rest.models.worker_runtime_sdks import WorkerRuntimeSDKs
|
|
248
|
+
from hatchet_sdk.clients.rest.models.worker_type import WorkerType
|
|
243
249
|
from hatchet_sdk.clients.rest.models.workflow import Workflow
|
|
244
250
|
from hatchet_sdk.clients.rest.models.workflow_concurrency import WorkflowConcurrency
|
|
245
251
|
from hatchet_sdk.clients.rest.models.workflow_kind import WorkflowKind
|
|
@@ -22,9 +22,6 @@ from hatchet_sdk.clients.rest.api_response import ApiResponse
|
|
|
22
22
|
from hatchet_sdk.clients.rest.models.bulk_create_event_request import (
|
|
23
23
|
BulkCreateEventRequest,
|
|
24
24
|
)
|
|
25
|
-
from hatchet_sdk.clients.rest.models.bulk_create_event_response import (
|
|
26
|
-
BulkCreateEventResponse,
|
|
27
|
-
)
|
|
28
25
|
from hatchet_sdk.clients.rest.models.cancel_event_request import CancelEventRequest
|
|
29
26
|
from hatchet_sdk.clients.rest.models.create_event_request import CreateEventRequest
|
|
30
27
|
from hatchet_sdk.clients.rest.models.event import Event
|
|
@@ -38,6 +35,7 @@ from hatchet_sdk.clients.rest.models.event_order_by_field import EventOrderByFie
|
|
|
38
35
|
from hatchet_sdk.clients.rest.models.event_update_cancel200_response import (
|
|
39
36
|
EventUpdateCancel200Response,
|
|
40
37
|
)
|
|
38
|
+
from hatchet_sdk.clients.rest.models.events import Events
|
|
41
39
|
from hatchet_sdk.clients.rest.models.replay_event_request import ReplayEventRequest
|
|
42
40
|
from hatchet_sdk.clients.rest.models.workflow_run_status import WorkflowRunStatus
|
|
43
41
|
from hatchet_sdk.clients.rest.rest import RESTResponseType
|
|
@@ -375,7 +373,7 @@ class EventApi:
|
|
|
375
373
|
_content_type: Optional[StrictStr] = None,
|
|
376
374
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
377
375
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
378
|
-
) ->
|
|
376
|
+
) -> Events:
|
|
379
377
|
"""Bulk Create events
|
|
380
378
|
|
|
381
379
|
Bulk creates new events.
|
|
@@ -416,7 +414,7 @@ class EventApi:
|
|
|
416
414
|
)
|
|
417
415
|
|
|
418
416
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
419
|
-
"200": "
|
|
417
|
+
"200": "Events",
|
|
420
418
|
"400": "APIErrors",
|
|
421
419
|
"403": "APIErrors",
|
|
422
420
|
"429": "APIErrors",
|
|
@@ -453,7 +451,7 @@ class EventApi:
|
|
|
453
451
|
_content_type: Optional[StrictStr] = None,
|
|
454
452
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
455
453
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
456
|
-
) -> ApiResponse[
|
|
454
|
+
) -> ApiResponse[Events]:
|
|
457
455
|
"""Bulk Create events
|
|
458
456
|
|
|
459
457
|
Bulk creates new events.
|
|
@@ -494,7 +492,7 @@ class EventApi:
|
|
|
494
492
|
)
|
|
495
493
|
|
|
496
494
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
497
|
-
"200": "
|
|
495
|
+
"200": "Events",
|
|
498
496
|
"400": "APIErrors",
|
|
499
497
|
"403": "APIErrors",
|
|
500
498
|
"429": "APIErrors",
|
|
@@ -572,7 +570,7 @@ class EventApi:
|
|
|
572
570
|
)
|
|
573
571
|
|
|
574
572
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
575
|
-
"200": "
|
|
573
|
+
"200": "Events",
|
|
576
574
|
"400": "APIErrors",
|
|
577
575
|
"403": "APIErrors",
|
|
578
576
|
"429": "APIErrors",
|
|
@@ -2540,6 +2540,15 @@ class WorkflowApi:
|
|
|
2540
2540
|
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
2541
2541
|
),
|
|
2542
2542
|
],
|
|
2543
|
+
offset: Annotated[
|
|
2544
|
+
Optional[StrictInt], Field(description="The number to skip")
|
|
2545
|
+
] = None,
|
|
2546
|
+
limit: Annotated[
|
|
2547
|
+
Optional[StrictInt], Field(description="The number to limit by")
|
|
2548
|
+
] = None,
|
|
2549
|
+
name: Annotated[
|
|
2550
|
+
Optional[StrictStr], Field(description="Search by name")
|
|
2551
|
+
] = None,
|
|
2543
2552
|
_request_timeout: Union[
|
|
2544
2553
|
None,
|
|
2545
2554
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2558,6 +2567,12 @@ class WorkflowApi:
|
|
|
2558
2567
|
|
|
2559
2568
|
:param tenant: The tenant id (required)
|
|
2560
2569
|
:type tenant: str
|
|
2570
|
+
:param offset: The number to skip
|
|
2571
|
+
:type offset: int
|
|
2572
|
+
:param limit: The number to limit by
|
|
2573
|
+
:type limit: int
|
|
2574
|
+
:param name: Search by name
|
|
2575
|
+
:type name: str
|
|
2561
2576
|
:param _request_timeout: timeout setting for this request. If one
|
|
2562
2577
|
number provided, it will be total request
|
|
2563
2578
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2582,6 +2597,9 @@ class WorkflowApi:
|
|
|
2582
2597
|
|
|
2583
2598
|
_param = self._workflow_list_serialize(
|
|
2584
2599
|
tenant=tenant,
|
|
2600
|
+
offset=offset,
|
|
2601
|
+
limit=limit,
|
|
2602
|
+
name=name,
|
|
2585
2603
|
_request_auth=_request_auth,
|
|
2586
2604
|
_content_type=_content_type,
|
|
2587
2605
|
_headers=_headers,
|
|
@@ -2611,6 +2629,15 @@ class WorkflowApi:
|
|
|
2611
2629
|
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
2612
2630
|
),
|
|
2613
2631
|
],
|
|
2632
|
+
offset: Annotated[
|
|
2633
|
+
Optional[StrictInt], Field(description="The number to skip")
|
|
2634
|
+
] = None,
|
|
2635
|
+
limit: Annotated[
|
|
2636
|
+
Optional[StrictInt], Field(description="The number to limit by")
|
|
2637
|
+
] = None,
|
|
2638
|
+
name: Annotated[
|
|
2639
|
+
Optional[StrictStr], Field(description="Search by name")
|
|
2640
|
+
] = None,
|
|
2614
2641
|
_request_timeout: Union[
|
|
2615
2642
|
None,
|
|
2616
2643
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2629,6 +2656,12 @@ class WorkflowApi:
|
|
|
2629
2656
|
|
|
2630
2657
|
:param tenant: The tenant id (required)
|
|
2631
2658
|
:type tenant: str
|
|
2659
|
+
:param offset: The number to skip
|
|
2660
|
+
:type offset: int
|
|
2661
|
+
:param limit: The number to limit by
|
|
2662
|
+
:type limit: int
|
|
2663
|
+
:param name: Search by name
|
|
2664
|
+
:type name: str
|
|
2632
2665
|
:param _request_timeout: timeout setting for this request. If one
|
|
2633
2666
|
number provided, it will be total request
|
|
2634
2667
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2653,6 +2686,9 @@ class WorkflowApi:
|
|
|
2653
2686
|
|
|
2654
2687
|
_param = self._workflow_list_serialize(
|
|
2655
2688
|
tenant=tenant,
|
|
2689
|
+
offset=offset,
|
|
2690
|
+
limit=limit,
|
|
2691
|
+
name=name,
|
|
2656
2692
|
_request_auth=_request_auth,
|
|
2657
2693
|
_content_type=_content_type,
|
|
2658
2694
|
_headers=_headers,
|
|
@@ -2682,6 +2718,15 @@ class WorkflowApi:
|
|
|
2682
2718
|
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
2683
2719
|
),
|
|
2684
2720
|
],
|
|
2721
|
+
offset: Annotated[
|
|
2722
|
+
Optional[StrictInt], Field(description="The number to skip")
|
|
2723
|
+
] = None,
|
|
2724
|
+
limit: Annotated[
|
|
2725
|
+
Optional[StrictInt], Field(description="The number to limit by")
|
|
2726
|
+
] = None,
|
|
2727
|
+
name: Annotated[
|
|
2728
|
+
Optional[StrictStr], Field(description="Search by name")
|
|
2729
|
+
] = None,
|
|
2685
2730
|
_request_timeout: Union[
|
|
2686
2731
|
None,
|
|
2687
2732
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2700,6 +2745,12 @@ class WorkflowApi:
|
|
|
2700
2745
|
|
|
2701
2746
|
:param tenant: The tenant id (required)
|
|
2702
2747
|
:type tenant: str
|
|
2748
|
+
:param offset: The number to skip
|
|
2749
|
+
:type offset: int
|
|
2750
|
+
:param limit: The number to limit by
|
|
2751
|
+
:type limit: int
|
|
2752
|
+
:param name: Search by name
|
|
2753
|
+
:type name: str
|
|
2703
2754
|
:param _request_timeout: timeout setting for this request. If one
|
|
2704
2755
|
number provided, it will be total request
|
|
2705
2756
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2724,6 +2775,9 @@ class WorkflowApi:
|
|
|
2724
2775
|
|
|
2725
2776
|
_param = self._workflow_list_serialize(
|
|
2726
2777
|
tenant=tenant,
|
|
2778
|
+
offset=offset,
|
|
2779
|
+
limit=limit,
|
|
2780
|
+
name=name,
|
|
2727
2781
|
_request_auth=_request_auth,
|
|
2728
2782
|
_content_type=_content_type,
|
|
2729
2783
|
_headers=_headers,
|
|
@@ -2743,6 +2797,9 @@ class WorkflowApi:
|
|
|
2743
2797
|
def _workflow_list_serialize(
|
|
2744
2798
|
self,
|
|
2745
2799
|
tenant,
|
|
2800
|
+
offset,
|
|
2801
|
+
limit,
|
|
2802
|
+
name,
|
|
2746
2803
|
_request_auth,
|
|
2747
2804
|
_content_type,
|
|
2748
2805
|
_headers,
|
|
@@ -2766,6 +2823,18 @@ class WorkflowApi:
|
|
|
2766
2823
|
if tenant is not None:
|
|
2767
2824
|
_path_params["tenant"] = tenant
|
|
2768
2825
|
# process the query parameters
|
|
2826
|
+
if offset is not None:
|
|
2827
|
+
|
|
2828
|
+
_query_params.append(("offset", offset))
|
|
2829
|
+
|
|
2830
|
+
if limit is not None:
|
|
2831
|
+
|
|
2832
|
+
_query_params.append(("limit", limit))
|
|
2833
|
+
|
|
2834
|
+
if name is not None:
|
|
2835
|
+
|
|
2836
|
+
_query_params.append(("name", name))
|
|
2837
|
+
|
|
2769
2838
|
# process the header parameters
|
|
2770
2839
|
# process the form parameters
|
|
2771
2840
|
# process the body parameter
|
|
@@ -27,10 +27,10 @@ from hatchet_sdk.clients.rest.models.api_token import APIToken
|
|
|
27
27
|
from hatchet_sdk.clients.rest.models.bulk_create_event_request import (
|
|
28
28
|
BulkCreateEventRequest,
|
|
29
29
|
)
|
|
30
|
-
from hatchet_sdk.clients.rest.models.bulk_create_event_response import (
|
|
31
|
-
BulkCreateEventResponse,
|
|
32
|
-
)
|
|
33
30
|
from hatchet_sdk.clients.rest.models.cancel_event_request import CancelEventRequest
|
|
31
|
+
from hatchet_sdk.clients.rest.models.concurrency_limit_strategy import (
|
|
32
|
+
ConcurrencyLimitStrategy,
|
|
33
|
+
)
|
|
34
34
|
from hatchet_sdk.clients.rest.models.create_api_token_request import (
|
|
35
35
|
CreateAPITokenRequest,
|
|
36
36
|
)
|
|
@@ -56,6 +56,7 @@ from hatchet_sdk.clients.rest.models.create_tenant_invite_request import (
|
|
|
56
56
|
from hatchet_sdk.clients.rest.models.create_tenant_request import CreateTenantRequest
|
|
57
57
|
from hatchet_sdk.clients.rest.models.cron_workflows import CronWorkflows
|
|
58
58
|
from hatchet_sdk.clients.rest.models.cron_workflows_list import CronWorkflowsList
|
|
59
|
+
from hatchet_sdk.clients.rest.models.cron_workflows_method import CronWorkflowsMethod
|
|
59
60
|
from hatchet_sdk.clients.rest.models.cron_workflows_order_by_field import (
|
|
60
61
|
CronWorkflowsOrderByField,
|
|
61
62
|
)
|
|
@@ -73,6 +74,7 @@ from hatchet_sdk.clients.rest.models.event_update_cancel200_response import (
|
|
|
73
74
|
from hatchet_sdk.clients.rest.models.event_workflow_run_summary import (
|
|
74
75
|
EventWorkflowRunSummary,
|
|
75
76
|
)
|
|
77
|
+
from hatchet_sdk.clients.rest.models.events import Events
|
|
76
78
|
from hatchet_sdk.clients.rest.models.get_step_run_diff_response import (
|
|
77
79
|
GetStepRunDiffResponse,
|
|
78
80
|
)
|
|
@@ -124,6 +126,9 @@ from hatchet_sdk.clients.rest.models.scheduled_workflows import ScheduledWorkflo
|
|
|
124
126
|
from hatchet_sdk.clients.rest.models.scheduled_workflows_list import (
|
|
125
127
|
ScheduledWorkflowsList,
|
|
126
128
|
)
|
|
129
|
+
from hatchet_sdk.clients.rest.models.scheduled_workflows_method import (
|
|
130
|
+
ScheduledWorkflowsMethod,
|
|
131
|
+
)
|
|
127
132
|
from hatchet_sdk.clients.rest.models.scheduled_workflows_order_by_field import (
|
|
128
133
|
ScheduledWorkflowsOrderByField,
|
|
129
134
|
)
|
|
@@ -207,6 +212,7 @@ from hatchet_sdk.clients.rest.models.worker_label import WorkerLabel
|
|
|
207
212
|
from hatchet_sdk.clients.rest.models.worker_list import WorkerList
|
|
208
213
|
from hatchet_sdk.clients.rest.models.worker_runtime_info import WorkerRuntimeInfo
|
|
209
214
|
from hatchet_sdk.clients.rest.models.worker_runtime_sdks import WorkerRuntimeSDKs
|
|
215
|
+
from hatchet_sdk.clients.rest.models.worker_type import WorkerType
|
|
210
216
|
from hatchet_sdk.clients.rest.models.workflow import Workflow
|
|
211
217
|
from hatchet_sdk.clients.rest.models.workflow_concurrency import WorkflowConcurrency
|
|
212
218
|
from hatchet_sdk.clients.rest.models.workflow_kind import WorkflowKind
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hatchet API
|
|
5
|
+
|
|
6
|
+
The Hatchet API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
import json
|
|
18
|
+
from enum import Enum
|
|
19
|
+
|
|
20
|
+
from typing_extensions import Self
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ConcurrencyLimitStrategy(str, Enum):
|
|
24
|
+
"""
|
|
25
|
+
ConcurrencyLimitStrategy
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
allowed enum values
|
|
30
|
+
"""
|
|
31
|
+
CANCEL_IN_PROGRESS = "CANCEL_IN_PROGRESS"
|
|
32
|
+
DROP_NEWEST = "DROP_NEWEST"
|
|
33
|
+
QUEUE_NEWEST = "QUEUE_NEWEST"
|
|
34
|
+
GROUP_ROUND_ROBIN = "GROUP_ROUND_ROBIN"
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_json(cls, json_str: str) -> Self:
|
|
38
|
+
"""Create an instance of ConcurrencyLimitStrategy from a JSON string"""
|
|
39
|
+
return cls(json.loads(json_str))
|
|
@@ -19,17 +19,11 @@ import pprint
|
|
|
19
19
|
import re # noqa: F401
|
|
20
20
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
21
|
|
|
22
|
-
from pydantic import
|
|
23
|
-
BaseModel,
|
|
24
|
-
ConfigDict,
|
|
25
|
-
Field,
|
|
26
|
-
StrictBool,
|
|
27
|
-
StrictStr,
|
|
28
|
-
field_validator,
|
|
29
|
-
)
|
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
30
23
|
from typing_extensions import Self
|
|
31
24
|
|
|
32
25
|
from hatchet_sdk.clients.rest.models.api_resource_meta import APIResourceMeta
|
|
26
|
+
from hatchet_sdk.clients.rest.models.cron_workflows_method import CronWorkflowsMethod
|
|
33
27
|
|
|
34
28
|
|
|
35
29
|
class CronWorkflows(BaseModel):
|
|
@@ -49,7 +43,7 @@ class CronWorkflows(BaseModel):
|
|
|
49
43
|
default=None, alias="additionalMetadata"
|
|
50
44
|
)
|
|
51
45
|
enabled: StrictBool
|
|
52
|
-
method:
|
|
46
|
+
method: CronWorkflowsMethod
|
|
53
47
|
__properties: ClassVar[List[str]] = [
|
|
54
48
|
"metadata",
|
|
55
49
|
"tenantId",
|
|
@@ -64,13 +58,6 @@ class CronWorkflows(BaseModel):
|
|
|
64
58
|
"method",
|
|
65
59
|
]
|
|
66
60
|
|
|
67
|
-
@field_validator("method")
|
|
68
|
-
def method_validate_enum(cls, value):
|
|
69
|
-
"""Validates the enum"""
|
|
70
|
-
if value not in set(["DEFAULT", "API"]):
|
|
71
|
-
raise ValueError("must be one of enum values ('DEFAULT', 'API')")
|
|
72
|
-
return value
|
|
73
|
-
|
|
74
61
|
model_config = ConfigDict(
|
|
75
62
|
populate_by_name=True,
|
|
76
63
|
validate_assignment=True,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hatchet API
|
|
5
|
+
|
|
6
|
+
The Hatchet API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
import json
|
|
18
|
+
from enum import Enum
|
|
19
|
+
|
|
20
|
+
from typing_extensions import Self
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CronWorkflowsMethod(str, Enum):
|
|
24
|
+
"""
|
|
25
|
+
CronWorkflowsMethod
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
allowed enum values
|
|
30
|
+
"""
|
|
31
|
+
DEFAULT = "DEFAULT"
|
|
32
|
+
API = "API"
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_json(cls, json_str: str) -> Self:
|
|
36
|
+
"""Create an instance of CronWorkflowsMethod from a JSON string"""
|
|
37
|
+
return cls(json.loads(json_str))
|