hatchet-sdk 1.9.0__py3-none-any.whl → 1.10.0__py3-none-any.whl

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 (42) hide show
  1. hatchet_sdk/client.py +2 -0
  2. hatchet_sdk/clients/admin.py +2 -6
  3. hatchet_sdk/clients/dispatcher/action_listener.py +20 -1
  4. hatchet_sdk/clients/events.py +58 -8
  5. hatchet_sdk/clients/rest/__init__.py +11 -0
  6. hatchet_sdk/clients/rest/api/__init__.py +1 -0
  7. hatchet_sdk/clients/rest/api/event_api.py +335 -0
  8. hatchet_sdk/clients/rest/api/filter_api.py +1305 -0
  9. hatchet_sdk/clients/rest/api/task_api.py +51 -0
  10. hatchet_sdk/clients/rest/api/workflow_runs_api.py +34 -0
  11. hatchet_sdk/clients/rest/models/__init__.py +10 -0
  12. hatchet_sdk/clients/rest/models/create_event_request.py +16 -2
  13. hatchet_sdk/clients/rest/models/v1_create_filter_request.py +99 -0
  14. hatchet_sdk/clients/rest/models/v1_event.py +142 -0
  15. hatchet_sdk/clients/rest/models/v1_event_list.py +110 -0
  16. hatchet_sdk/clients/rest/models/v1_event_workflow_run_summary.py +101 -0
  17. hatchet_sdk/clients/rest/models/v1_filter.py +127 -0
  18. hatchet_sdk/clients/rest/models/v1_filter_list.py +110 -0
  19. hatchet_sdk/clients/rest/models/v1_log_line.py +21 -2
  20. hatchet_sdk/clients/rest/models/v1_task_event.py +12 -0
  21. hatchet_sdk/clients/rest/models/v1_task_summary.py +12 -0
  22. hatchet_sdk/clients/rest/models/v1_task_timing.py +19 -0
  23. hatchet_sdk/clients/rest/models/workflow.py +5 -0
  24. hatchet_sdk/config.py +29 -0
  25. hatchet_sdk/context/context.py +9 -0
  26. hatchet_sdk/contracts/dispatcher_pb2.py +56 -56
  27. hatchet_sdk/contracts/dispatcher_pb2.pyi +6 -2
  28. hatchet_sdk/contracts/events_pb2.py +20 -20
  29. hatchet_sdk/contracts/events_pb2.pyi +14 -6
  30. hatchet_sdk/features/cron.py +1 -1
  31. hatchet_sdk/features/filters.py +181 -0
  32. hatchet_sdk/features/runs.py +7 -1
  33. hatchet_sdk/features/scheduled.py +1 -1
  34. hatchet_sdk/features/workflows.py +1 -1
  35. hatchet_sdk/hatchet.py +82 -71
  36. hatchet_sdk/runnables/standalone.py +6 -0
  37. hatchet_sdk/runnables/workflow.py +29 -2
  38. hatchet_sdk/worker/worker.py +1 -1
  39. {hatchet_sdk-1.9.0.dist-info → hatchet_sdk-1.10.0.dist-info}/METADATA +1 -1
  40. {hatchet_sdk-1.9.0.dist-info → hatchet_sdk-1.10.0.dist-info}/RECORD +42 -34
  41. {hatchet_sdk-1.9.0.dist-info → hatchet_sdk-1.10.0.dist-info}/WHEEL +0 -0
  42. {hatchet_sdk-1.9.0.dist-info → hatchet_sdk-1.10.0.dist-info}/entry_points.txt +0 -0
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
15
15
  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
16
16
 
17
17
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10\x64ispatcher.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"V\n\x0cWorkerLabels\x12\x15\n\x08strValue\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08intValue\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x0b\n\t_strValueB\x0b\n\t_intValue\"\xc8\x01\n\x0bRuntimeInfo\x12\x17\n\nsdkVersion\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x08language\x18\x02 \x01(\x0e\x32\x05.SDKSH\x01\x88\x01\x01\x12\x1c\n\x0flanguageVersion\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x02os\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x12\n\x05\x65xtra\x18\x05 \x01(\tH\x04\x88\x01\x01\x42\r\n\x0b_sdkVersionB\x0b\n\t_languageB\x12\n\x10_languageVersionB\x05\n\x03_osB\x08\n\x06_extra\"\xc0\x02\n\x15WorkerRegisterRequest\x12\x12\n\nworkerName\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63tions\x18\x02 \x03(\t\x12\x10\n\x08services\x18\x03 \x03(\t\x12\x14\n\x07maxRuns\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x32\n\x06labels\x18\x05 \x03(\x0b\x32\".WorkerRegisterRequest.LabelsEntry\x12\x16\n\twebhookId\x18\x06 \x01(\tH\x01\x88\x01\x01\x12&\n\x0bruntimeInfo\x18\x07 \x01(\x0b\x32\x0c.RuntimeInfoH\x02\x88\x01\x01\x1a<\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1c\n\x05value\x18\x02 \x01(\x0b\x32\r.WorkerLabels:\x02\x38\x01\x42\n\n\x08_maxRunsB\x0c\n\n_webhookIdB\x0e\n\x0c_runtimeInfo\"P\n\x16WorkerRegisterResponse\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x10\n\x08workerId\x18\x02 \x01(\t\x12\x12\n\nworkerName\x18\x03 \x01(\t\"\xa3\x01\n\x19UpsertWorkerLabelsRequest\x12\x10\n\x08workerId\x18\x01 \x01(\t\x12\x36\n\x06labels\x18\x02 \x03(\x0b\x32&.UpsertWorkerLabelsRequest.LabelsEntry\x1a<\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1c\n\x05value\x18\x02 \x01(\x0b\x32\r.WorkerLabels:\x02\x38\x01\"@\n\x1aUpsertWorkerLabelsResponse\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x10\n\x08workerId\x18\x02 \x01(\t\"\x98\x04\n\x0e\x41ssignedAction\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x15\n\rworkflowRunId\x18\x02 \x01(\t\x12\x18\n\x10getGroupKeyRunId\x18\x03 \x01(\t\x12\r\n\x05jobId\x18\x04 \x01(\t\x12\x0f\n\x07jobName\x18\x05 \x01(\t\x12\x10\n\x08jobRunId\x18\x06 \x01(\t\x12\x0e\n\x06stepId\x18\x07 \x01(\t\x12\x11\n\tstepRunId\x18\x08 \x01(\t\x12\x10\n\x08\x61\x63tionId\x18\t \x01(\t\x12\x1f\n\nactionType\x18\n \x01(\x0e\x32\x0b.ActionType\x12\x15\n\ractionPayload\x18\x0b \x01(\t\x12\x10\n\x08stepName\x18\x0c \x01(\t\x12\x12\n\nretryCount\x18\r \x01(\x05\x12 \n\x13\x61\x64\x64itional_metadata\x18\x0e \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x63hild_workflow_index\x18\x0f \x01(\x05H\x01\x88\x01\x01\x12\x1f\n\x12\x63hild_workflow_key\x18\x10 \x01(\tH\x02\x88\x01\x01\x12#\n\x16parent_workflow_run_id\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x10\n\x08priority\x18\x12 \x01(\x05\x42\x16\n\x14_additional_metadataB\x17\n\x15_child_workflow_indexB\x15\n\x13_child_workflow_keyB\x19\n\x17_parent_workflow_run_id\"\'\n\x13WorkerListenRequest\x12\x10\n\x08workerId\x18\x01 \x01(\t\",\n\x18WorkerUnsubscribeRequest\x12\x10\n\x08workerId\x18\x01 \x01(\t\"?\n\x19WorkerUnsubscribeResponse\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x10\n\x08workerId\x18\x02 \x01(\t\"\xe1\x01\n\x13GroupKeyActionEvent\x12\x10\n\x08workerId\x18\x01 \x01(\t\x12\x15\n\rworkflowRunId\x18\x02 \x01(\t\x12\x18\n\x10getGroupKeyRunId\x18\x03 \x01(\t\x12\x10\n\x08\x61\x63tionId\x18\x04 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\teventType\x18\x06 \x01(\x0e\x32\x18.GroupKeyActionEventType\x12\x14\n\x0c\x65ventPayload\x18\x07 \x01(\t\"\xc4\x02\n\x0fStepActionEvent\x12\x10\n\x08workerId\x18\x01 \x01(\t\x12\r\n\x05jobId\x18\x02 \x01(\t\x12\x10\n\x08jobRunId\x18\x03 \x01(\t\x12\x0e\n\x06stepId\x18\x04 \x01(\t\x12\x11\n\tstepRunId\x18\x05 \x01(\t\x12\x10\n\x08\x61\x63tionId\x18\x06 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\teventType\x18\x08 \x01(\x0e\x32\x14.StepActionEventType\x12\x14\n\x0c\x65ventPayload\x18\t \x01(\t\x12\x17\n\nretryCount\x18\n \x01(\x05H\x00\x88\x01\x01\x12\x1b\n\x0eshouldNotRetry\x18\x0b \x01(\x08H\x01\x88\x01\x01\x42\r\n\x0b_retryCountB\x11\n\x0f_shouldNotRetry\"9\n\x13\x41\x63tionEventResponse\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x10\n\x08workerId\x18\x02 \x01(\t\"\xc0\x01\n SubscribeToWorkflowEventsRequest\x12\x1a\n\rworkflowRunId\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x11\x61\x64\x64itionalMetaKey\x18\x02 \x01(\tH\x01\x88\x01\x01\x12 \n\x13\x61\x64\x64itionalMetaValue\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_workflowRunIdB\x14\n\x12_additionalMetaKeyB\x16\n\x14_additionalMetaValue\"7\n\x1eSubscribeToWorkflowRunsRequest\x12\x15\n\rworkflowRunId\x18\x01 \x01(\t\"\xb2\x02\n\rWorkflowEvent\x12\x15\n\rworkflowRunId\x18\x01 \x01(\t\x12#\n\x0cresourceType\x18\x02 \x01(\x0e\x32\r.ResourceType\x12%\n\teventType\x18\x03 \x01(\x0e\x32\x12.ResourceEventType\x12\x12\n\nresourceId\x18\x04 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x65ventPayload\x18\x06 \x01(\t\x12\x0e\n\x06hangup\x18\x07 \x01(\x08\x12\x18\n\x0bstepRetries\x18\x08 \x01(\x05H\x00\x88\x01\x01\x12\x17\n\nretryCount\x18\t \x01(\x05H\x01\x88\x01\x01\x42\x0e\n\x0c_stepRetriesB\r\n\x0b_retryCount\"\xa8\x01\n\x10WorkflowRunEvent\x12\x15\n\rworkflowRunId\x18\x01 \x01(\t\x12(\n\teventType\x18\x02 \x01(\x0e\x32\x15.WorkflowRunEventType\x12\x32\n\x0e\x65ventTimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1f\n\x07results\x18\x04 \x03(\x0b\x32\x0e.StepRunResult\"\x8a\x01\n\rStepRunResult\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12\x16\n\x0estepReadableId\x18\x02 \x01(\t\x12\x10\n\x08jobRunId\x18\x03 \x01(\t\x12\x12\n\x05\x65rror\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06output\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_errorB\t\n\x07_output\"W\n\rOverridesData\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\x12\x16\n\x0e\x63\x61llerFilename\x18\x04 \x01(\t\"\x17\n\x15OverridesDataResponse\"U\n\x10HeartbeatRequest\x12\x10\n\x08workerId\x18\x01 \x01(\t\x12/\n\x0bheartbeatAt\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x13\n\x11HeartbeatResponse\"F\n\x15RefreshTimeoutRequest\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12\x1a\n\x12incrementTimeoutBy\x18\x02 \x01(\t\"G\n\x16RefreshTimeoutResponse\x12-\n\ttimeoutAt\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\'\n\x12ReleaseSlotRequest\x12\x11\n\tstepRunId\x18\x01 \x01(\t\"\x15\n\x13ReleaseSlotResponse*7\n\x04SDKS\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x06\n\x02GO\x10\x01\x12\n\n\x06PYTHON\x10\x02\x12\x0e\n\nTYPESCRIPT\x10\x03*N\n\nActionType\x12\x12\n\x0eSTART_STEP_RUN\x10\x00\x12\x13\n\x0f\x43\x41NCEL_STEP_RUN\x10\x01\x12\x17\n\x13START_GET_GROUP_KEY\x10\x02*\xa2\x01\n\x17GroupKeyActionEventType\x12 \n\x1cGROUP_KEY_EVENT_TYPE_UNKNOWN\x10\x00\x12 \n\x1cGROUP_KEY_EVENT_TYPE_STARTED\x10\x01\x12\"\n\x1eGROUP_KEY_EVENT_TYPE_COMPLETED\x10\x02\x12\x1f\n\x1bGROUP_KEY_EVENT_TYPE_FAILED\x10\x03*\xac\x01\n\x13StepActionEventType\x12\x1b\n\x17STEP_EVENT_TYPE_UNKNOWN\x10\x00\x12\x1b\n\x17STEP_EVENT_TYPE_STARTED\x10\x01\x12\x1d\n\x19STEP_EVENT_TYPE_COMPLETED\x10\x02\x12\x1a\n\x16STEP_EVENT_TYPE_FAILED\x10\x03\x12 \n\x1cSTEP_EVENT_TYPE_ACKNOWLEDGED\x10\x04*e\n\x0cResourceType\x12\x19\n\x15RESOURCE_TYPE_UNKNOWN\x10\x00\x12\x1a\n\x16RESOURCE_TYPE_STEP_RUN\x10\x01\x12\x1e\n\x1aRESOURCE_TYPE_WORKFLOW_RUN\x10\x02*\xfe\x01\n\x11ResourceEventType\x12\x1f\n\x1bRESOURCE_EVENT_TYPE_UNKNOWN\x10\x00\x12\x1f\n\x1bRESOURCE_EVENT_TYPE_STARTED\x10\x01\x12!\n\x1dRESOURCE_EVENT_TYPE_COMPLETED\x10\x02\x12\x1e\n\x1aRESOURCE_EVENT_TYPE_FAILED\x10\x03\x12!\n\x1dRESOURCE_EVENT_TYPE_CANCELLED\x10\x04\x12!\n\x1dRESOURCE_EVENT_TYPE_TIMED_OUT\x10\x05\x12\x1e\n\x1aRESOURCE_EVENT_TYPE_STREAM\x10\x06*<\n\x14WorkflowRunEventType\x12$\n WORKFLOW_RUN_EVENT_TYPE_FINISHED\x10\x00\x32\xf8\x06\n\nDispatcher\x12=\n\x08Register\x12\x16.WorkerRegisterRequest\x1a\x17.WorkerRegisterResponse\"\x00\x12\x33\n\x06Listen\x12\x14.WorkerListenRequest\x1a\x0f.AssignedAction\"\x00\x30\x01\x12\x35\n\x08ListenV2\x12\x14.WorkerListenRequest\x1a\x0f.AssignedAction\"\x00\x30\x01\x12\x34\n\tHeartbeat\x12\x11.HeartbeatRequest\x1a\x12.HeartbeatResponse\"\x00\x12R\n\x19SubscribeToWorkflowEvents\x12!.SubscribeToWorkflowEventsRequest\x1a\x0e.WorkflowEvent\"\x00\x30\x01\x12S\n\x17SubscribeToWorkflowRuns\x12\x1f.SubscribeToWorkflowRunsRequest\x1a\x11.WorkflowRunEvent\"\x00(\x01\x30\x01\x12?\n\x13SendStepActionEvent\x12\x10.StepActionEvent\x1a\x14.ActionEventResponse\"\x00\x12G\n\x17SendGroupKeyActionEvent\x12\x14.GroupKeyActionEvent\x1a\x14.ActionEventResponse\"\x00\x12<\n\x10PutOverridesData\x12\x0e.OverridesData\x1a\x16.OverridesDataResponse\"\x00\x12\x46\n\x0bUnsubscribe\x12\x19.WorkerUnsubscribeRequest\x1a\x1a.WorkerUnsubscribeResponse\"\x00\x12\x43\n\x0eRefreshTimeout\x12\x16.RefreshTimeoutRequest\x1a\x17.RefreshTimeoutResponse\"\x00\x12:\n\x0bReleaseSlot\x12\x13.ReleaseSlotRequest\x1a\x14.ReleaseSlotResponse\"\x00\x12O\n\x12UpsertWorkerLabels\x12\x1a.UpsertWorkerLabelsRequest\x1a\x1b.UpsertWorkerLabelsResponse\"\x00\x42GZEgithub.com/hatchet-dev/hatchet/internal/services/dispatcher/contractsb\x06proto3')
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10\x64ispatcher.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"V\n\x0cWorkerLabels\x12\x15\n\x08strValue\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08intValue\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x0b\n\t_strValueB\x0b\n\t_intValue\"\xc8\x01\n\x0bRuntimeInfo\x12\x17\n\nsdkVersion\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x08language\x18\x02 \x01(\x0e\x32\x05.SDKSH\x01\x88\x01\x01\x12\x1c\n\x0flanguageVersion\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x02os\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x12\n\x05\x65xtra\x18\x05 \x01(\tH\x04\x88\x01\x01\x42\r\n\x0b_sdkVersionB\x0b\n\t_languageB\x12\n\x10_languageVersionB\x05\n\x03_osB\x08\n\x06_extra\"\xc0\x02\n\x15WorkerRegisterRequest\x12\x12\n\nworkerName\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63tions\x18\x02 \x03(\t\x12\x10\n\x08services\x18\x03 \x03(\t\x12\x14\n\x07maxRuns\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x32\n\x06labels\x18\x05 \x03(\x0b\x32\".WorkerRegisterRequest.LabelsEntry\x12\x16\n\twebhookId\x18\x06 \x01(\tH\x01\x88\x01\x01\x12&\n\x0bruntimeInfo\x18\x07 \x01(\x0b\x32\x0c.RuntimeInfoH\x02\x88\x01\x01\x1a<\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1c\n\x05value\x18\x02 \x01(\x0b\x32\r.WorkerLabels:\x02\x38\x01\x42\n\n\x08_maxRunsB\x0c\n\n_webhookIdB\x0e\n\x0c_runtimeInfo\"P\n\x16WorkerRegisterResponse\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x10\n\x08workerId\x18\x02 \x01(\t\x12\x12\n\nworkerName\x18\x03 \x01(\t\"\xa3\x01\n\x19UpsertWorkerLabelsRequest\x12\x10\n\x08workerId\x18\x01 \x01(\t\x12\x36\n\x06labels\x18\x02 \x03(\x0b\x32&.UpsertWorkerLabelsRequest.LabelsEntry\x1a<\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1c\n\x05value\x18\x02 \x01(\x0b\x32\r.WorkerLabels:\x02\x38\x01\"@\n\x1aUpsertWorkerLabelsResponse\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x10\n\x08workerId\x18\x02 \x01(\t\"\xf6\x04\n\x0e\x41ssignedAction\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x15\n\rworkflowRunId\x18\x02 \x01(\t\x12\x18\n\x10getGroupKeyRunId\x18\x03 \x01(\t\x12\r\n\x05jobId\x18\x04 \x01(\t\x12\x0f\n\x07jobName\x18\x05 \x01(\t\x12\x10\n\x08jobRunId\x18\x06 \x01(\t\x12\x0e\n\x06stepId\x18\x07 \x01(\t\x12\x11\n\tstepRunId\x18\x08 \x01(\t\x12\x10\n\x08\x61\x63tionId\x18\t \x01(\t\x12\x1f\n\nactionType\x18\n \x01(\x0e\x32\x0b.ActionType\x12\x15\n\ractionPayload\x18\x0b \x01(\t\x12\x10\n\x08stepName\x18\x0c \x01(\t\x12\x12\n\nretryCount\x18\r \x01(\x05\x12 \n\x13\x61\x64\x64itional_metadata\x18\x0e \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x63hild_workflow_index\x18\x0f \x01(\x05H\x01\x88\x01\x01\x12\x1f\n\x12\x63hild_workflow_key\x18\x10 \x01(\tH\x02\x88\x01\x01\x12#\n\x16parent_workflow_run_id\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x10\n\x08priority\x18\x12 \x01(\x05\x12\x17\n\nworkflowId\x18\x13 \x01(\tH\x04\x88\x01\x01\x12\x1e\n\x11workflowVersionId\x18\x14 \x01(\tH\x05\x88\x01\x01\x42\x16\n\x14_additional_metadataB\x17\n\x15_child_workflow_indexB\x15\n\x13_child_workflow_keyB\x19\n\x17_parent_workflow_run_idB\r\n\x0b_workflowIdB\x14\n\x12_workflowVersionId\"\'\n\x13WorkerListenRequest\x12\x10\n\x08workerId\x18\x01 \x01(\t\",\n\x18WorkerUnsubscribeRequest\x12\x10\n\x08workerId\x18\x01 \x01(\t\"?\n\x19WorkerUnsubscribeResponse\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x10\n\x08workerId\x18\x02 \x01(\t\"\xe1\x01\n\x13GroupKeyActionEvent\x12\x10\n\x08workerId\x18\x01 \x01(\t\x12\x15\n\rworkflowRunId\x18\x02 \x01(\t\x12\x18\n\x10getGroupKeyRunId\x18\x03 \x01(\t\x12\x10\n\x08\x61\x63tionId\x18\x04 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\teventType\x18\x06 \x01(\x0e\x32\x18.GroupKeyActionEventType\x12\x14\n\x0c\x65ventPayload\x18\x07 \x01(\t\"\xc4\x02\n\x0fStepActionEvent\x12\x10\n\x08workerId\x18\x01 \x01(\t\x12\r\n\x05jobId\x18\x02 \x01(\t\x12\x10\n\x08jobRunId\x18\x03 \x01(\t\x12\x0e\n\x06stepId\x18\x04 \x01(\t\x12\x11\n\tstepRunId\x18\x05 \x01(\t\x12\x10\n\x08\x61\x63tionId\x18\x06 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\teventType\x18\x08 \x01(\x0e\x32\x14.StepActionEventType\x12\x14\n\x0c\x65ventPayload\x18\t \x01(\t\x12\x17\n\nretryCount\x18\n \x01(\x05H\x00\x88\x01\x01\x12\x1b\n\x0eshouldNotRetry\x18\x0b \x01(\x08H\x01\x88\x01\x01\x42\r\n\x0b_retryCountB\x11\n\x0f_shouldNotRetry\"9\n\x13\x41\x63tionEventResponse\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x10\n\x08workerId\x18\x02 \x01(\t\"\xc0\x01\n SubscribeToWorkflowEventsRequest\x12\x1a\n\rworkflowRunId\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x11\x61\x64\x64itionalMetaKey\x18\x02 \x01(\tH\x01\x88\x01\x01\x12 \n\x13\x61\x64\x64itionalMetaValue\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_workflowRunIdB\x14\n\x12_additionalMetaKeyB\x16\n\x14_additionalMetaValue\"7\n\x1eSubscribeToWorkflowRunsRequest\x12\x15\n\rworkflowRunId\x18\x01 \x01(\t\"\xb2\x02\n\rWorkflowEvent\x12\x15\n\rworkflowRunId\x18\x01 \x01(\t\x12#\n\x0cresourceType\x18\x02 \x01(\x0e\x32\r.ResourceType\x12%\n\teventType\x18\x03 \x01(\x0e\x32\x12.ResourceEventType\x12\x12\n\nresourceId\x18\x04 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x65ventPayload\x18\x06 \x01(\t\x12\x0e\n\x06hangup\x18\x07 \x01(\x08\x12\x18\n\x0bstepRetries\x18\x08 \x01(\x05H\x00\x88\x01\x01\x12\x17\n\nretryCount\x18\t \x01(\x05H\x01\x88\x01\x01\x42\x0e\n\x0c_stepRetriesB\r\n\x0b_retryCount\"\xa8\x01\n\x10WorkflowRunEvent\x12\x15\n\rworkflowRunId\x18\x01 \x01(\t\x12(\n\teventType\x18\x02 \x01(\x0e\x32\x15.WorkflowRunEventType\x12\x32\n\x0e\x65ventTimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1f\n\x07results\x18\x04 \x03(\x0b\x32\x0e.StepRunResult\"\x8a\x01\n\rStepRunResult\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12\x16\n\x0estepReadableId\x18\x02 \x01(\t\x12\x10\n\x08jobRunId\x18\x03 \x01(\t\x12\x12\n\x05\x65rror\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06output\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_errorB\t\n\x07_output\"W\n\rOverridesData\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\x12\x16\n\x0e\x63\x61llerFilename\x18\x04 \x01(\t\"\x17\n\x15OverridesDataResponse\"U\n\x10HeartbeatRequest\x12\x10\n\x08workerId\x18\x01 \x01(\t\x12/\n\x0bheartbeatAt\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x13\n\x11HeartbeatResponse\"F\n\x15RefreshTimeoutRequest\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12\x1a\n\x12incrementTimeoutBy\x18\x02 \x01(\t\"G\n\x16RefreshTimeoutResponse\x12-\n\ttimeoutAt\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\'\n\x12ReleaseSlotRequest\x12\x11\n\tstepRunId\x18\x01 \x01(\t\"\x15\n\x13ReleaseSlotResponse*7\n\x04SDKS\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x06\n\x02GO\x10\x01\x12\n\n\x06PYTHON\x10\x02\x12\x0e\n\nTYPESCRIPT\x10\x03*N\n\nActionType\x12\x12\n\x0eSTART_STEP_RUN\x10\x00\x12\x13\n\x0f\x43\x41NCEL_STEP_RUN\x10\x01\x12\x17\n\x13START_GET_GROUP_KEY\x10\x02*\xa2\x01\n\x17GroupKeyActionEventType\x12 \n\x1cGROUP_KEY_EVENT_TYPE_UNKNOWN\x10\x00\x12 \n\x1cGROUP_KEY_EVENT_TYPE_STARTED\x10\x01\x12\"\n\x1eGROUP_KEY_EVENT_TYPE_COMPLETED\x10\x02\x12\x1f\n\x1bGROUP_KEY_EVENT_TYPE_FAILED\x10\x03*\xac\x01\n\x13StepActionEventType\x12\x1b\n\x17STEP_EVENT_TYPE_UNKNOWN\x10\x00\x12\x1b\n\x17STEP_EVENT_TYPE_STARTED\x10\x01\x12\x1d\n\x19STEP_EVENT_TYPE_COMPLETED\x10\x02\x12\x1a\n\x16STEP_EVENT_TYPE_FAILED\x10\x03\x12 \n\x1cSTEP_EVENT_TYPE_ACKNOWLEDGED\x10\x04*e\n\x0cResourceType\x12\x19\n\x15RESOURCE_TYPE_UNKNOWN\x10\x00\x12\x1a\n\x16RESOURCE_TYPE_STEP_RUN\x10\x01\x12\x1e\n\x1aRESOURCE_TYPE_WORKFLOW_RUN\x10\x02*\xfe\x01\n\x11ResourceEventType\x12\x1f\n\x1bRESOURCE_EVENT_TYPE_UNKNOWN\x10\x00\x12\x1f\n\x1bRESOURCE_EVENT_TYPE_STARTED\x10\x01\x12!\n\x1dRESOURCE_EVENT_TYPE_COMPLETED\x10\x02\x12\x1e\n\x1aRESOURCE_EVENT_TYPE_FAILED\x10\x03\x12!\n\x1dRESOURCE_EVENT_TYPE_CANCELLED\x10\x04\x12!\n\x1dRESOURCE_EVENT_TYPE_TIMED_OUT\x10\x05\x12\x1e\n\x1aRESOURCE_EVENT_TYPE_STREAM\x10\x06*<\n\x14WorkflowRunEventType\x12$\n WORKFLOW_RUN_EVENT_TYPE_FINISHED\x10\x00\x32\xf8\x06\n\nDispatcher\x12=\n\x08Register\x12\x16.WorkerRegisterRequest\x1a\x17.WorkerRegisterResponse\"\x00\x12\x33\n\x06Listen\x12\x14.WorkerListenRequest\x1a\x0f.AssignedAction\"\x00\x30\x01\x12\x35\n\x08ListenV2\x12\x14.WorkerListenRequest\x1a\x0f.AssignedAction\"\x00\x30\x01\x12\x34\n\tHeartbeat\x12\x11.HeartbeatRequest\x1a\x12.HeartbeatResponse\"\x00\x12R\n\x19SubscribeToWorkflowEvents\x12!.SubscribeToWorkflowEventsRequest\x1a\x0e.WorkflowEvent\"\x00\x30\x01\x12S\n\x17SubscribeToWorkflowRuns\x12\x1f.SubscribeToWorkflowRunsRequest\x1a\x11.WorkflowRunEvent\"\x00(\x01\x30\x01\x12?\n\x13SendStepActionEvent\x12\x10.StepActionEvent\x1a\x14.ActionEventResponse\"\x00\x12G\n\x17SendGroupKeyActionEvent\x12\x14.GroupKeyActionEvent\x1a\x14.ActionEventResponse\"\x00\x12<\n\x10PutOverridesData\x12\x0e.OverridesData\x1a\x16.OverridesDataResponse\"\x00\x12\x46\n\x0bUnsubscribe\x12\x19.WorkerUnsubscribeRequest\x1a\x1a.WorkerUnsubscribeResponse\"\x00\x12\x43\n\x0eRefreshTimeout\x12\x16.RefreshTimeoutRequest\x1a\x17.RefreshTimeoutResponse\"\x00\x12:\n\x0bReleaseSlot\x12\x13.ReleaseSlotRequest\x1a\x14.ReleaseSlotResponse\"\x00\x12O\n\x12UpsertWorkerLabels\x12\x1a.UpsertWorkerLabelsRequest\x1a\x1b.UpsertWorkerLabelsResponse\"\x00\x42GZEgithub.com/hatchet-dev/hatchet/internal/services/dispatcher/contractsb\x06proto3')
19
19
 
20
20
  _globals = globals()
21
21
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -27,20 +27,20 @@ if not _descriptor._USE_C_DESCRIPTORS:
27
27
  _globals['_WORKERREGISTERREQUEST_LABELSENTRY']._serialized_options = b'8\001'
28
28
  _globals['_UPSERTWORKERLABELSREQUEST_LABELSENTRY']._loaded_options = None
29
29
  _globals['_UPSERTWORKERLABELSREQUEST_LABELSENTRY']._serialized_options = b'8\001'
30
- _globals['_SDKS']._serialized_start=3590
31
- _globals['_SDKS']._serialized_end=3645
32
- _globals['_ACTIONTYPE']._serialized_start=3647
33
- _globals['_ACTIONTYPE']._serialized_end=3725
34
- _globals['_GROUPKEYACTIONEVENTTYPE']._serialized_start=3728
35
- _globals['_GROUPKEYACTIONEVENTTYPE']._serialized_end=3890
36
- _globals['_STEPACTIONEVENTTYPE']._serialized_start=3893
37
- _globals['_STEPACTIONEVENTTYPE']._serialized_end=4065
38
- _globals['_RESOURCETYPE']._serialized_start=4067
39
- _globals['_RESOURCETYPE']._serialized_end=4168
40
- _globals['_RESOURCEEVENTTYPE']._serialized_start=4171
41
- _globals['_RESOURCEEVENTTYPE']._serialized_end=4425
42
- _globals['_WORKFLOWRUNEVENTTYPE']._serialized_start=4427
43
- _globals['_WORKFLOWRUNEVENTTYPE']._serialized_end=4487
30
+ _globals['_SDKS']._serialized_start=3684
31
+ _globals['_SDKS']._serialized_end=3739
32
+ _globals['_ACTIONTYPE']._serialized_start=3741
33
+ _globals['_ACTIONTYPE']._serialized_end=3819
34
+ _globals['_GROUPKEYACTIONEVENTTYPE']._serialized_start=3822
35
+ _globals['_GROUPKEYACTIONEVENTTYPE']._serialized_end=3984
36
+ _globals['_STEPACTIONEVENTTYPE']._serialized_start=3987
37
+ _globals['_STEPACTIONEVENTTYPE']._serialized_end=4159
38
+ _globals['_RESOURCETYPE']._serialized_start=4161
39
+ _globals['_RESOURCETYPE']._serialized_end=4262
40
+ _globals['_RESOURCEEVENTTYPE']._serialized_start=4265
41
+ _globals['_RESOURCEEVENTTYPE']._serialized_end=4519
42
+ _globals['_WORKFLOWRUNEVENTTYPE']._serialized_start=4521
43
+ _globals['_WORKFLOWRUNEVENTTYPE']._serialized_end=4581
44
44
  _globals['_WORKERLABELS']._serialized_start=53
45
45
  _globals['_WORKERLABELS']._serialized_end=139
46
46
  _globals['_RUNTIMEINFO']._serialized_start=142
@@ -58,45 +58,45 @@ if not _descriptor._USE_C_DESCRIPTORS:
58
58
  _globals['_UPSERTWORKERLABELSRESPONSE']._serialized_start=915
59
59
  _globals['_UPSERTWORKERLABELSRESPONSE']._serialized_end=979
60
60
  _globals['_ASSIGNEDACTION']._serialized_start=982
61
- _globals['_ASSIGNEDACTION']._serialized_end=1518
62
- _globals['_WORKERLISTENREQUEST']._serialized_start=1520
63
- _globals['_WORKERLISTENREQUEST']._serialized_end=1559
64
- _globals['_WORKERUNSUBSCRIBEREQUEST']._serialized_start=1561
65
- _globals['_WORKERUNSUBSCRIBEREQUEST']._serialized_end=1605
66
- _globals['_WORKERUNSUBSCRIBERESPONSE']._serialized_start=1607
67
- _globals['_WORKERUNSUBSCRIBERESPONSE']._serialized_end=1670
68
- _globals['_GROUPKEYACTIONEVENT']._serialized_start=1673
69
- _globals['_GROUPKEYACTIONEVENT']._serialized_end=1898
70
- _globals['_STEPACTIONEVENT']._serialized_start=1901
71
- _globals['_STEPACTIONEVENT']._serialized_end=2225
72
- _globals['_ACTIONEVENTRESPONSE']._serialized_start=2227
73
- _globals['_ACTIONEVENTRESPONSE']._serialized_end=2284
74
- _globals['_SUBSCRIBETOWORKFLOWEVENTSREQUEST']._serialized_start=2287
75
- _globals['_SUBSCRIBETOWORKFLOWEVENTSREQUEST']._serialized_end=2479
76
- _globals['_SUBSCRIBETOWORKFLOWRUNSREQUEST']._serialized_start=2481
77
- _globals['_SUBSCRIBETOWORKFLOWRUNSREQUEST']._serialized_end=2536
78
- _globals['_WORKFLOWEVENT']._serialized_start=2539
79
- _globals['_WORKFLOWEVENT']._serialized_end=2845
80
- _globals['_WORKFLOWRUNEVENT']._serialized_start=2848
81
- _globals['_WORKFLOWRUNEVENT']._serialized_end=3016
82
- _globals['_STEPRUNRESULT']._serialized_start=3019
83
- _globals['_STEPRUNRESULT']._serialized_end=3157
84
- _globals['_OVERRIDESDATA']._serialized_start=3159
85
- _globals['_OVERRIDESDATA']._serialized_end=3246
86
- _globals['_OVERRIDESDATARESPONSE']._serialized_start=3248
87
- _globals['_OVERRIDESDATARESPONSE']._serialized_end=3271
88
- _globals['_HEARTBEATREQUEST']._serialized_start=3273
89
- _globals['_HEARTBEATREQUEST']._serialized_end=3358
90
- _globals['_HEARTBEATRESPONSE']._serialized_start=3360
91
- _globals['_HEARTBEATRESPONSE']._serialized_end=3379
92
- _globals['_REFRESHTIMEOUTREQUEST']._serialized_start=3381
93
- _globals['_REFRESHTIMEOUTREQUEST']._serialized_end=3451
94
- _globals['_REFRESHTIMEOUTRESPONSE']._serialized_start=3453
95
- _globals['_REFRESHTIMEOUTRESPONSE']._serialized_end=3524
96
- _globals['_RELEASESLOTREQUEST']._serialized_start=3526
97
- _globals['_RELEASESLOTREQUEST']._serialized_end=3565
98
- _globals['_RELEASESLOTRESPONSE']._serialized_start=3567
99
- _globals['_RELEASESLOTRESPONSE']._serialized_end=3588
100
- _globals['_DISPATCHER']._serialized_start=4490
101
- _globals['_DISPATCHER']._serialized_end=5378
61
+ _globals['_ASSIGNEDACTION']._serialized_end=1612
62
+ _globals['_WORKERLISTENREQUEST']._serialized_start=1614
63
+ _globals['_WORKERLISTENREQUEST']._serialized_end=1653
64
+ _globals['_WORKERUNSUBSCRIBEREQUEST']._serialized_start=1655
65
+ _globals['_WORKERUNSUBSCRIBEREQUEST']._serialized_end=1699
66
+ _globals['_WORKERUNSUBSCRIBERESPONSE']._serialized_start=1701
67
+ _globals['_WORKERUNSUBSCRIBERESPONSE']._serialized_end=1764
68
+ _globals['_GROUPKEYACTIONEVENT']._serialized_start=1767
69
+ _globals['_GROUPKEYACTIONEVENT']._serialized_end=1992
70
+ _globals['_STEPACTIONEVENT']._serialized_start=1995
71
+ _globals['_STEPACTIONEVENT']._serialized_end=2319
72
+ _globals['_ACTIONEVENTRESPONSE']._serialized_start=2321
73
+ _globals['_ACTIONEVENTRESPONSE']._serialized_end=2378
74
+ _globals['_SUBSCRIBETOWORKFLOWEVENTSREQUEST']._serialized_start=2381
75
+ _globals['_SUBSCRIBETOWORKFLOWEVENTSREQUEST']._serialized_end=2573
76
+ _globals['_SUBSCRIBETOWORKFLOWRUNSREQUEST']._serialized_start=2575
77
+ _globals['_SUBSCRIBETOWORKFLOWRUNSREQUEST']._serialized_end=2630
78
+ _globals['_WORKFLOWEVENT']._serialized_start=2633
79
+ _globals['_WORKFLOWEVENT']._serialized_end=2939
80
+ _globals['_WORKFLOWRUNEVENT']._serialized_start=2942
81
+ _globals['_WORKFLOWRUNEVENT']._serialized_end=3110
82
+ _globals['_STEPRUNRESULT']._serialized_start=3113
83
+ _globals['_STEPRUNRESULT']._serialized_end=3251
84
+ _globals['_OVERRIDESDATA']._serialized_start=3253
85
+ _globals['_OVERRIDESDATA']._serialized_end=3340
86
+ _globals['_OVERRIDESDATARESPONSE']._serialized_start=3342
87
+ _globals['_OVERRIDESDATARESPONSE']._serialized_end=3365
88
+ _globals['_HEARTBEATREQUEST']._serialized_start=3367
89
+ _globals['_HEARTBEATREQUEST']._serialized_end=3452
90
+ _globals['_HEARTBEATRESPONSE']._serialized_start=3454
91
+ _globals['_HEARTBEATRESPONSE']._serialized_end=3473
92
+ _globals['_REFRESHTIMEOUTREQUEST']._serialized_start=3475
93
+ _globals['_REFRESHTIMEOUTREQUEST']._serialized_end=3545
94
+ _globals['_REFRESHTIMEOUTRESPONSE']._serialized_start=3547
95
+ _globals['_REFRESHTIMEOUTRESPONSE']._serialized_end=3618
96
+ _globals['_RELEASESLOTREQUEST']._serialized_start=3620
97
+ _globals['_RELEASESLOTREQUEST']._serialized_end=3659
98
+ _globals['_RELEASESLOTRESPONSE']._serialized_start=3661
99
+ _globals['_RELEASESLOTRESPONSE']._serialized_end=3682
100
+ _globals['_DISPATCHER']._serialized_start=4584
101
+ _globals['_DISPATCHER']._serialized_end=5472
102
102
  # @@protoc_insertion_point(module_scope)
@@ -163,7 +163,7 @@ class UpsertWorkerLabelsResponse(_message.Message):
163
163
  def __init__(self, tenantId: _Optional[str] = ..., workerId: _Optional[str] = ...) -> None: ...
164
164
 
165
165
  class AssignedAction(_message.Message):
166
- __slots__ = ("tenantId", "workflowRunId", "getGroupKeyRunId", "jobId", "jobName", "jobRunId", "stepId", "stepRunId", "actionId", "actionType", "actionPayload", "stepName", "retryCount", "additional_metadata", "child_workflow_index", "child_workflow_key", "parent_workflow_run_id", "priority")
166
+ __slots__ = ("tenantId", "workflowRunId", "getGroupKeyRunId", "jobId", "jobName", "jobRunId", "stepId", "stepRunId", "actionId", "actionType", "actionPayload", "stepName", "retryCount", "additional_metadata", "child_workflow_index", "child_workflow_key", "parent_workflow_run_id", "priority", "workflowId", "workflowVersionId")
167
167
  TENANTID_FIELD_NUMBER: _ClassVar[int]
168
168
  WORKFLOWRUNID_FIELD_NUMBER: _ClassVar[int]
169
169
  GETGROUPKEYRUNID_FIELD_NUMBER: _ClassVar[int]
@@ -182,6 +182,8 @@ class AssignedAction(_message.Message):
182
182
  CHILD_WORKFLOW_KEY_FIELD_NUMBER: _ClassVar[int]
183
183
  PARENT_WORKFLOW_RUN_ID_FIELD_NUMBER: _ClassVar[int]
184
184
  PRIORITY_FIELD_NUMBER: _ClassVar[int]
185
+ WORKFLOWID_FIELD_NUMBER: _ClassVar[int]
186
+ WORKFLOWVERSIONID_FIELD_NUMBER: _ClassVar[int]
185
187
  tenantId: str
186
188
  workflowRunId: str
187
189
  getGroupKeyRunId: str
@@ -200,7 +202,9 @@ class AssignedAction(_message.Message):
200
202
  child_workflow_key: str
201
203
  parent_workflow_run_id: str
202
204
  priority: int
203
- def __init__(self, tenantId: _Optional[str] = ..., workflowRunId: _Optional[str] = ..., getGroupKeyRunId: _Optional[str] = ..., jobId: _Optional[str] = ..., jobName: _Optional[str] = ..., jobRunId: _Optional[str] = ..., stepId: _Optional[str] = ..., stepRunId: _Optional[str] = ..., actionId: _Optional[str] = ..., actionType: _Optional[_Union[ActionType, str]] = ..., actionPayload: _Optional[str] = ..., stepName: _Optional[str] = ..., retryCount: _Optional[int] = ..., additional_metadata: _Optional[str] = ..., child_workflow_index: _Optional[int] = ..., child_workflow_key: _Optional[str] = ..., parent_workflow_run_id: _Optional[str] = ..., priority: _Optional[int] = ...) -> None: ...
205
+ workflowId: str
206
+ workflowVersionId: str
207
+ def __init__(self, tenantId: _Optional[str] = ..., workflowRunId: _Optional[str] = ..., getGroupKeyRunId: _Optional[str] = ..., jobId: _Optional[str] = ..., jobName: _Optional[str] = ..., jobRunId: _Optional[str] = ..., stepId: _Optional[str] = ..., stepRunId: _Optional[str] = ..., actionId: _Optional[str] = ..., actionType: _Optional[_Union[ActionType, str]] = ..., actionPayload: _Optional[str] = ..., stepName: _Optional[str] = ..., retryCount: _Optional[int] = ..., additional_metadata: _Optional[str] = ..., child_workflow_index: _Optional[int] = ..., child_workflow_key: _Optional[str] = ..., parent_workflow_run_id: _Optional[str] = ..., priority: _Optional[int] = ..., workflowId: _Optional[str] = ..., workflowVersionId: _Optional[str] = ...) -> None: ...
204
208
 
205
209
  class WorkerListenRequest(_message.Message):
206
210
  __slots__ = ("workerId",)
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
15
15
  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
16
16
 
17
17
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x65vents.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb4\x01\n\x05\x45vent\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x0f\n\x07\x65ventId\x18\x02 \x01(\t\x12\x0b\n\x03key\x18\x03 \x01(\t\x12\x0f\n\x07payload\x18\x04 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1f\n\x12\x61\x64\x64itionalMetadata\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x15\n\x13_additionalMetadata\" \n\x06\x45vents\x12\x16\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x06.Event\"\x92\x01\n\rPutLogRequest\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12-\n\tcreatedAt\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x12\n\x05level\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08metadata\x18\x05 \x01(\tB\x08\n\x06_level\"\x10\n\x0ePutLogResponse\"|\n\x15PutStreamEventRequest\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12-\n\tcreatedAt\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07message\x18\x03 \x01(\x0c\x12\x10\n\x08metadata\x18\x05 \x01(\t\"\x18\n\x16PutStreamEventResponse\"9\n\x14\x42ulkPushEventRequest\x12!\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x11.PushEventRequest\"\x9c\x01\n\x10PushEventRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0f\n\x07payload\x18\x02 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1f\n\x12\x61\x64\x64itionalMetadata\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x15\n\x13_additionalMetadata\"%\n\x12ReplayEventRequest\x12\x0f\n\x07\x65ventId\x18\x01 \x01(\t2\x88\x02\n\rEventsService\x12#\n\x04Push\x12\x11.PushEventRequest\x1a\x06.Event\"\x00\x12,\n\x08\x42ulkPush\x12\x15.BulkPushEventRequest\x1a\x07.Events\"\x00\x12\x32\n\x11ReplaySingleEvent\x12\x13.ReplayEventRequest\x1a\x06.Event\"\x00\x12+\n\x06PutLog\x12\x0e.PutLogRequest\x1a\x0f.PutLogResponse\"\x00\x12\x43\n\x0ePutStreamEvent\x12\x16.PutStreamEventRequest\x1a\x17.PutStreamEventResponse\"\x00\x42\x45ZCgithub.com/hatchet-dev/hatchet/internal/services/ingestor/contractsb\x06proto3')
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x65vents.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd2\x01\n\x05\x45vent\x12\x10\n\x08tenantId\x18\x01 \x01(\t\x12\x0f\n\x07\x65ventId\x18\x02 \x01(\t\x12\x0b\n\x03key\x18\x03 \x01(\t\x12\x0f\n\x07payload\x18\x04 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1f\n\x12\x61\x64\x64itionalMetadata\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05scope\x18\x07 \x01(\tH\x01\x88\x01\x01\x42\x15\n\x13_additionalMetadataB\x08\n\x06_scope\" \n\x06\x45vents\x12\x16\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x06.Event\"\xc2\x01\n\rPutLogRequest\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12-\n\tcreatedAt\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x12\n\x05level\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08metadata\x18\x05 \x01(\t\x12\x1b\n\x0etaskRetryCount\x18\x06 \x01(\x05H\x01\x88\x01\x01\x42\x08\n\x06_levelB\x11\n\x0f_taskRetryCount\"\x10\n\x0ePutLogResponse\"|\n\x15PutStreamEventRequest\x12\x11\n\tstepRunId\x18\x01 \x01(\t\x12-\n\tcreatedAt\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07message\x18\x03 \x01(\x0c\x12\x10\n\x08metadata\x18\x05 \x01(\t\"\x18\n\x16PutStreamEventResponse\"9\n\x14\x42ulkPushEventRequest\x12!\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x11.PushEventRequest\"\xde\x01\n\x10PushEventRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0f\n\x07payload\x18\x02 \x01(\t\x12\x32\n\x0e\x65ventTimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1f\n\x12\x61\x64\x64itionalMetadata\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08priority\x18\x05 \x01(\x05H\x01\x88\x01\x01\x12\x12\n\x05scope\x18\x06 \x01(\tH\x02\x88\x01\x01\x42\x15\n\x13_additionalMetadataB\x0b\n\t_priorityB\x08\n\x06_scope\"%\n\x12ReplayEventRequest\x12\x0f\n\x07\x65ventId\x18\x01 \x01(\t2\x88\x02\n\rEventsService\x12#\n\x04Push\x12\x11.PushEventRequest\x1a\x06.Event\"\x00\x12,\n\x08\x42ulkPush\x12\x15.BulkPushEventRequest\x1a\x07.Events\"\x00\x12\x32\n\x11ReplaySingleEvent\x12\x13.ReplayEventRequest\x1a\x06.Event\"\x00\x12+\n\x06PutLog\x12\x0e.PutLogRequest\x1a\x0f.PutLogResponse\"\x00\x12\x43\n\x0ePutStreamEvent\x12\x16.PutStreamEventRequest\x1a\x17.PutStreamEventResponse\"\x00\x42\x45ZCgithub.com/hatchet-dev/hatchet/internal/services/ingestor/contractsb\x06proto3')
19
19
 
20
20
  _globals = globals()
21
21
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -24,23 +24,23 @@ if not _descriptor._USE_C_DESCRIPTORS:
24
24
  _globals['DESCRIPTOR']._loaded_options = None
25
25
  _globals['DESCRIPTOR']._serialized_options = b'ZCgithub.com/hatchet-dev/hatchet/internal/services/ingestor/contracts'
26
26
  _globals['_EVENT']._serialized_start=50
27
- _globals['_EVENT']._serialized_end=230
28
- _globals['_EVENTS']._serialized_start=232
29
- _globals['_EVENTS']._serialized_end=264
30
- _globals['_PUTLOGREQUEST']._serialized_start=267
31
- _globals['_PUTLOGREQUEST']._serialized_end=413
32
- _globals['_PUTLOGRESPONSE']._serialized_start=415
33
- _globals['_PUTLOGRESPONSE']._serialized_end=431
34
- _globals['_PUTSTREAMEVENTREQUEST']._serialized_start=433
35
- _globals['_PUTSTREAMEVENTREQUEST']._serialized_end=557
36
- _globals['_PUTSTREAMEVENTRESPONSE']._serialized_start=559
37
- _globals['_PUTSTREAMEVENTRESPONSE']._serialized_end=583
38
- _globals['_BULKPUSHEVENTREQUEST']._serialized_start=585
39
- _globals['_BULKPUSHEVENTREQUEST']._serialized_end=642
40
- _globals['_PUSHEVENTREQUEST']._serialized_start=645
41
- _globals['_PUSHEVENTREQUEST']._serialized_end=801
42
- _globals['_REPLAYEVENTREQUEST']._serialized_start=803
43
- _globals['_REPLAYEVENTREQUEST']._serialized_end=840
44
- _globals['_EVENTSSERVICE']._serialized_start=843
45
- _globals['_EVENTSSERVICE']._serialized_end=1107
27
+ _globals['_EVENT']._serialized_end=260
28
+ _globals['_EVENTS']._serialized_start=262
29
+ _globals['_EVENTS']._serialized_end=294
30
+ _globals['_PUTLOGREQUEST']._serialized_start=297
31
+ _globals['_PUTLOGREQUEST']._serialized_end=491
32
+ _globals['_PUTLOGRESPONSE']._serialized_start=493
33
+ _globals['_PUTLOGRESPONSE']._serialized_end=509
34
+ _globals['_PUTSTREAMEVENTREQUEST']._serialized_start=511
35
+ _globals['_PUTSTREAMEVENTREQUEST']._serialized_end=635
36
+ _globals['_PUTSTREAMEVENTRESPONSE']._serialized_start=637
37
+ _globals['_PUTSTREAMEVENTRESPONSE']._serialized_end=661
38
+ _globals['_BULKPUSHEVENTREQUEST']._serialized_start=663
39
+ _globals['_BULKPUSHEVENTREQUEST']._serialized_end=720
40
+ _globals['_PUSHEVENTREQUEST']._serialized_start=723
41
+ _globals['_PUSHEVENTREQUEST']._serialized_end=945
42
+ _globals['_REPLAYEVENTREQUEST']._serialized_start=947
43
+ _globals['_REPLAYEVENTREQUEST']._serialized_end=984
44
+ _globals['_EVENTSSERVICE']._serialized_start=987
45
+ _globals['_EVENTSSERVICE']._serialized_end=1251
46
46
  # @@protoc_insertion_point(module_scope)
@@ -7,20 +7,22 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
7
7
  DESCRIPTOR: _descriptor.FileDescriptor
8
8
 
9
9
  class Event(_message.Message):
10
- __slots__ = ("tenantId", "eventId", "key", "payload", "eventTimestamp", "additionalMetadata")
10
+ __slots__ = ("tenantId", "eventId", "key", "payload", "eventTimestamp", "additionalMetadata", "scope")
11
11
  TENANTID_FIELD_NUMBER: _ClassVar[int]
12
12
  EVENTID_FIELD_NUMBER: _ClassVar[int]
13
13
  KEY_FIELD_NUMBER: _ClassVar[int]
14
14
  PAYLOAD_FIELD_NUMBER: _ClassVar[int]
15
15
  EVENTTIMESTAMP_FIELD_NUMBER: _ClassVar[int]
16
16
  ADDITIONALMETADATA_FIELD_NUMBER: _ClassVar[int]
17
+ SCOPE_FIELD_NUMBER: _ClassVar[int]
17
18
  tenantId: str
18
19
  eventId: str
19
20
  key: str
20
21
  payload: str
21
22
  eventTimestamp: _timestamp_pb2.Timestamp
22
23
  additionalMetadata: str
23
- def __init__(self, tenantId: _Optional[str] = ..., eventId: _Optional[str] = ..., key: _Optional[str] = ..., payload: _Optional[str] = ..., eventTimestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., additionalMetadata: _Optional[str] = ...) -> None: ...
24
+ scope: str
25
+ def __init__(self, tenantId: _Optional[str] = ..., eventId: _Optional[str] = ..., key: _Optional[str] = ..., payload: _Optional[str] = ..., eventTimestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., additionalMetadata: _Optional[str] = ..., scope: _Optional[str] = ...) -> None: ...
24
26
 
25
27
  class Events(_message.Message):
26
28
  __slots__ = ("events",)
@@ -29,18 +31,20 @@ class Events(_message.Message):
29
31
  def __init__(self, events: _Optional[_Iterable[_Union[Event, _Mapping]]] = ...) -> None: ...
30
32
 
31
33
  class PutLogRequest(_message.Message):
32
- __slots__ = ("stepRunId", "createdAt", "message", "level", "metadata")
34
+ __slots__ = ("stepRunId", "createdAt", "message", "level", "metadata", "taskRetryCount")
33
35
  STEPRUNID_FIELD_NUMBER: _ClassVar[int]
34
36
  CREATEDAT_FIELD_NUMBER: _ClassVar[int]
35
37
  MESSAGE_FIELD_NUMBER: _ClassVar[int]
36
38
  LEVEL_FIELD_NUMBER: _ClassVar[int]
37
39
  METADATA_FIELD_NUMBER: _ClassVar[int]
40
+ TASKRETRYCOUNT_FIELD_NUMBER: _ClassVar[int]
38
41
  stepRunId: str
39
42
  createdAt: _timestamp_pb2.Timestamp
40
43
  message: str
41
44
  level: str
42
45
  metadata: str
43
- def __init__(self, stepRunId: _Optional[str] = ..., createdAt: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., message: _Optional[str] = ..., level: _Optional[str] = ..., metadata: _Optional[str] = ...) -> None: ...
46
+ taskRetryCount: int
47
+ def __init__(self, stepRunId: _Optional[str] = ..., createdAt: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., message: _Optional[str] = ..., level: _Optional[str] = ..., metadata: _Optional[str] = ..., taskRetryCount: _Optional[int] = ...) -> None: ...
44
48
 
45
49
  class PutLogResponse(_message.Message):
46
50
  __slots__ = ()
@@ -69,16 +73,20 @@ class BulkPushEventRequest(_message.Message):
69
73
  def __init__(self, events: _Optional[_Iterable[_Union[PushEventRequest, _Mapping]]] = ...) -> None: ...
70
74
 
71
75
  class PushEventRequest(_message.Message):
72
- __slots__ = ("key", "payload", "eventTimestamp", "additionalMetadata")
76
+ __slots__ = ("key", "payload", "eventTimestamp", "additionalMetadata", "priority", "scope")
73
77
  KEY_FIELD_NUMBER: _ClassVar[int]
74
78
  PAYLOAD_FIELD_NUMBER: _ClassVar[int]
75
79
  EVENTTIMESTAMP_FIELD_NUMBER: _ClassVar[int]
76
80
  ADDITIONALMETADATA_FIELD_NUMBER: _ClassVar[int]
81
+ PRIORITY_FIELD_NUMBER: _ClassVar[int]
82
+ SCOPE_FIELD_NUMBER: _ClassVar[int]
77
83
  key: str
78
84
  payload: str
79
85
  eventTimestamp: _timestamp_pb2.Timestamp
80
86
  additionalMetadata: str
81
- def __init__(self, key: _Optional[str] = ..., payload: _Optional[str] = ..., eventTimestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., additionalMetadata: _Optional[str] = ...) -> None: ...
87
+ priority: int
88
+ scope: str
89
+ def __init__(self, key: _Optional[str] = ..., payload: _Optional[str] = ..., eventTimestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., additionalMetadata: _Optional[str] = ..., priority: _Optional[int] = ..., scope: _Optional[str] = ...) -> None: ...
82
90
 
83
91
  class ReplayEventRequest(_message.Message):
84
92
  __slots__ = ("eventId",)
@@ -102,7 +102,7 @@ class CronClient(BaseRestClient):
102
102
  with self.client() as client:
103
103
  return self._wra(client).cron_workflow_trigger_create(
104
104
  tenant=self.client_config.tenant_id,
105
- workflow=workflow_name,
105
+ workflow=self.client_config.apply_namespace(workflow_name),
106
106
  create_cron_workflow_trigger_request=CreateCronWorkflowTriggerRequest(
107
107
  cronName=cron_name,
108
108
  cronExpression=validated_input.expression,
@@ -0,0 +1,181 @@
1
+ import asyncio
2
+
3
+ from hatchet_sdk.clients.rest.api.filter_api import FilterApi
4
+ from hatchet_sdk.clients.rest.api_client import ApiClient
5
+ from hatchet_sdk.clients.rest.models.v1_create_filter_request import (
6
+ V1CreateFilterRequest,
7
+ )
8
+ from hatchet_sdk.clients.rest.models.v1_filter import V1Filter
9
+ from hatchet_sdk.clients.rest.models.v1_filter_list import V1FilterList
10
+ from hatchet_sdk.clients.v1.api_client import BaseRestClient
11
+ from hatchet_sdk.utils.typing import JSONSerializableMapping
12
+
13
+
14
+ class FiltersClient(BaseRestClient):
15
+ """
16
+ The filters client is a client for interacting with Hatchet's filters API.
17
+ """
18
+
19
+ def _fa(self, client: ApiClient) -> FilterApi:
20
+ return FilterApi(client)
21
+
22
+ async def aio_list(
23
+ self,
24
+ limit: int | None = None,
25
+ offset: int | None = None,
26
+ workflow_id_scope_pairs: list[tuple[str, str]] | None = None,
27
+ ) -> V1FilterList:
28
+ """
29
+ List filters for a given tenant.
30
+
31
+ :param limit: The maximum number of filters to return.
32
+ :param offset: The number of filters to skip before starting to collect the result set.
33
+ :param workflow_id_scope_pairs: A list of tuples containing workflow IDs and scopes to filter by. The workflow id is first, then the scope is second.
34
+
35
+ :return: A list of filters matching the specified criteria.
36
+ """
37
+ return await asyncio.to_thread(
38
+ self.list, limit, offset, workflow_id_scope_pairs
39
+ )
40
+
41
+ def list(
42
+ self,
43
+ limit: int | None = None,
44
+ offset: int | None = None,
45
+ workflow_id_scope_pairs: list[tuple[str, str]] | None = None,
46
+ ) -> V1FilterList:
47
+ """
48
+ List filters for a given tenant.
49
+
50
+ :param limit: The maximum number of filters to return.
51
+ :param offset: The number of filters to skip before starting to collect the result set.
52
+ :param workflow_id_scope_pairs: A list of tuples containing workflow IDs and scopes to filter by. The workflow id is first, then the scope is second.
53
+
54
+ :return: A list of filters matching the specified criteria.
55
+ """
56
+ workflow_ids = (
57
+ [pair[0] for pair in workflow_id_scope_pairs]
58
+ if workflow_id_scope_pairs
59
+ else None
60
+ )
61
+ scopes = (
62
+ [pair[1] for pair in workflow_id_scope_pairs]
63
+ if workflow_id_scope_pairs
64
+ else None
65
+ )
66
+
67
+ with self.client() as client:
68
+ return self._fa(client).v1_filter_list(
69
+ tenant=self.tenant_id,
70
+ limit=limit,
71
+ offset=offset,
72
+ workflow_ids=workflow_ids,
73
+ scopes=scopes,
74
+ )
75
+
76
+ def get(
77
+ self,
78
+ filter_id: str,
79
+ ) -> V1Filter:
80
+ """
81
+ Get a filter by its ID.
82
+
83
+ :param filter_id: The ID of the filter to retrieve.
84
+
85
+ :return: The filter with the specified ID.
86
+ """
87
+ with self.client() as client:
88
+ return self._fa(client).v1_filter_get(
89
+ tenant=self.tenant_id,
90
+ v1_filter=filter_id,
91
+ )
92
+
93
+ async def aio_get(
94
+ self,
95
+ filter_id: str,
96
+ ) -> V1Filter:
97
+ """
98
+ Get a filter by its ID.
99
+
100
+ :param filter_id: The ID of the filter to retrieve.
101
+
102
+ :return: The filter with the specified ID.
103
+ """
104
+ return await asyncio.to_thread(self.get, filter_id)
105
+
106
+ def create(
107
+ self,
108
+ workflow_id: str,
109
+ expression: str,
110
+ scope: str,
111
+ payload: JSONSerializableMapping = {},
112
+ ) -> V1Filter:
113
+ """
114
+ Create a new filter.
115
+
116
+ :param workflow_id: The ID of the workflow to associate with the filter.
117
+ :param expression: The expression to evaluate for the filter.
118
+ :param scope: The scope for the filter.
119
+ :param payload: The payload to send with the filter.
120
+
121
+ :return: The created filter.
122
+ """
123
+ with self.client() as client:
124
+ return self._fa(client).v1_filter_create(
125
+ tenant=self.tenant_id,
126
+ v1_create_filter_request=V1CreateFilterRequest(
127
+ workflowId=workflow_id,
128
+ expression=expression,
129
+ scope=scope,
130
+ payload=dict(payload),
131
+ ),
132
+ )
133
+
134
+ async def aio_create(
135
+ self,
136
+ workflow_id: str,
137
+ expression: str,
138
+ scope: str,
139
+ payload: JSONSerializableMapping = {},
140
+ ) -> V1Filter:
141
+ """
142
+ Create a new filter.
143
+
144
+ :param workflow_id: The ID of the workflow to associate with the filter.
145
+ :param expression: The expression to evaluate for the filter.
146
+ :param scope: The scope for the filter.
147
+ :param payload: The payload to send with the filter.
148
+
149
+ :return: The created filter.
150
+ """
151
+ return await asyncio.to_thread(
152
+ self.create, workflow_id, expression, scope, payload
153
+ )
154
+
155
+ def delete(
156
+ self,
157
+ filter_id: str,
158
+ ) -> V1Filter:
159
+ """
160
+ Delete a filter by its ID.
161
+
162
+ :param filter_id: The ID of the filter to delete.
163
+ :return: The deleted filter.
164
+ """
165
+ with self.client() as client:
166
+ return self._fa(client).v1_filter_delete(
167
+ tenant=self.tenant_id,
168
+ v1_filter=filter_id,
169
+ )
170
+
171
+ async def aio_delete(
172
+ self,
173
+ filter_id: str,
174
+ ) -> V1Filter:
175
+ """
176
+ Delete a filter by its ID.
177
+
178
+ :param filter_id: The ID of the filter to delete.
179
+ :return: The deleted filter.
180
+ """
181
+ return await asyncio.to_thread(self.delete, filter_id)
@@ -141,6 +141,7 @@ class RunsClient(BaseRestClient):
141
141
  workflow_ids: list[str] | None = None,
142
142
  worker_id: str | None = None,
143
143
  parent_task_external_id: str | None = None,
144
+ triggering_event_external_id: str | None = None,
144
145
  ) -> V1TaskSummaryList:
145
146
  """
146
147
  List task runs according to a set of filters.
@@ -155,6 +156,7 @@ class RunsClient(BaseRestClient):
155
156
  :param workflow_ids: The workflow IDs to filter task runs by.
156
157
  :param worker_id: The worker ID to filter task runs by.
157
158
  :param parent_task_external_id: The parent task external ID to filter task runs by.
159
+ :param triggering_event_external_id: The event id that triggered the task run.
158
160
 
159
161
  :return: A list of task runs matching the specified filters.
160
162
  """
@@ -170,6 +172,7 @@ class RunsClient(BaseRestClient):
170
172
  workflow_ids=workflow_ids,
171
173
  worker_id=worker_id,
172
174
  parent_task_external_id=parent_task_external_id,
175
+ triggering_event_external_id=triggering_event_external_id,
173
176
  )
174
177
 
175
178
  def list(
@@ -184,6 +187,7 @@ class RunsClient(BaseRestClient):
184
187
  workflow_ids: list[str] | None = None,
185
188
  worker_id: str | None = None,
186
189
  parent_task_external_id: str | None = None,
190
+ triggering_event_external_id: str | None = None,
187
191
  ) -> V1TaskSummaryList:
188
192
  """
189
193
  List task runs according to a set of filters.
@@ -198,6 +202,7 @@ class RunsClient(BaseRestClient):
198
202
  :param workflow_ids: The workflow IDs to filter task runs by.
199
203
  :param worker_id: The worker ID to filter task runs by.
200
204
  :param parent_task_external_id: The parent task external ID to filter task runs by.
205
+ :param triggering_event_external_id: The event id that triggered the task run.
201
206
 
202
207
  :return: A list of task runs matching the specified filters.
203
208
  """
@@ -216,6 +221,7 @@ class RunsClient(BaseRestClient):
216
221
  workflow_ids=workflow_ids,
217
222
  worker_id=worker_id,
218
223
  parent_task_external_id=parent_task_external_id,
224
+ triggering_event_external_id=triggering_event_external_id,
219
225
  )
220
226
 
221
227
  def create(
@@ -241,7 +247,7 @@ class RunsClient(BaseRestClient):
241
247
  return self._wra(client).v1_workflow_run_create(
242
248
  tenant=self.client_config.tenant_id,
243
249
  v1_trigger_workflow_run_request=V1TriggerWorkflowRunRequest(
244
- workflowName=workflow_name,
250
+ workflowName=self.client_config.apply_namespace(workflow_name),
245
251
  input=dict(input),
246
252
  additionalMetadata=dict(additional_metadata),
247
253
  priority=priority,
@@ -59,7 +59,7 @@ class ScheduledClient(BaseRestClient):
59
59
  with self.client() as client:
60
60
  return self._wra(client).scheduled_workflow_run_create(
61
61
  tenant=self.client_config.tenant_id,
62
- workflow=workflow_name,
62
+ workflow=self.client_config.apply_namespace(workflow_name),
63
63
  schedule_workflow_run_request=ScheduleWorkflowRunRequest(
64
64
  triggerAt=trigger_at,
65
65
  input=dict(input),
@@ -61,7 +61,7 @@ class WorkflowsClient(BaseRestClient):
61
61
  tenant=self.client_config.tenant_id,
62
62
  limit=limit,
63
63
  offset=offset,
64
- name=workflow_name,
64
+ name=self.client_config.apply_namespace(workflow_name),
65
65
  )
66
66
 
67
67
  async def aio_list(