hatchet-sdk 1.12.3__py3-none-any.whl → 1.14.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.
- hatchet_sdk/__init__.py +54 -40
- hatchet_sdk/clients/admin.py +18 -23
- hatchet_sdk/clients/dispatcher/action_listener.py +4 -3
- hatchet_sdk/clients/dispatcher/dispatcher.py +1 -4
- hatchet_sdk/clients/event_ts.py +2 -1
- hatchet_sdk/clients/events.py +16 -12
- hatchet_sdk/clients/listeners/durable_event_listener.py +4 -2
- hatchet_sdk/clients/listeners/pooled_listener.py +2 -2
- hatchet_sdk/clients/listeners/run_event_listener.py +7 -8
- hatchet_sdk/clients/listeners/workflow_listener.py +14 -6
- hatchet_sdk/clients/rest/api_response.py +3 -2
- hatchet_sdk/clients/rest/models/semaphore_slots.py +1 -1
- hatchet_sdk/clients/rest/models/v1_task_summary.py +5 -0
- hatchet_sdk/clients/rest/models/v1_workflow_run_details.py +11 -1
- hatchet_sdk/clients/rest/models/workflow_version.py +5 -0
- hatchet_sdk/clients/rest/tenacity_utils.py +6 -8
- hatchet_sdk/config.py +2 -0
- hatchet_sdk/connection.py +10 -4
- hatchet_sdk/context/context.py +170 -46
- hatchet_sdk/context/worker_context.py +4 -7
- hatchet_sdk/contracts/dispatcher_pb2.py +38 -38
- hatchet_sdk/contracts/dispatcher_pb2.pyi +4 -2
- hatchet_sdk/contracts/events_pb2.py +13 -13
- hatchet_sdk/contracts/events_pb2.pyi +4 -2
- hatchet_sdk/contracts/v1/workflows_pb2.py +1 -1
- hatchet_sdk/contracts/v1/workflows_pb2.pyi +2 -2
- hatchet_sdk/exceptions.py +103 -1
- hatchet_sdk/features/cron.py +2 -2
- hatchet_sdk/features/filters.py +12 -21
- hatchet_sdk/features/runs.py +4 -4
- hatchet_sdk/features/scheduled.py +8 -9
- hatchet_sdk/hatchet.py +65 -64
- hatchet_sdk/opentelemetry/instrumentor.py +20 -20
- hatchet_sdk/runnables/action.py +1 -2
- hatchet_sdk/runnables/contextvars.py +19 -0
- hatchet_sdk/runnables/task.py +37 -29
- hatchet_sdk/runnables/types.py +9 -8
- hatchet_sdk/runnables/workflow.py +57 -42
- hatchet_sdk/utils/proto_enums.py +4 -4
- hatchet_sdk/utils/timedelta_to_expression.py +2 -3
- hatchet_sdk/utils/typing.py +11 -17
- hatchet_sdk/v0/__init__.py +7 -7
- hatchet_sdk/v0/clients/admin.py +7 -7
- hatchet_sdk/v0/clients/dispatcher/action_listener.py +8 -8
- hatchet_sdk/v0/clients/dispatcher/dispatcher.py +9 -9
- hatchet_sdk/v0/clients/events.py +3 -3
- hatchet_sdk/v0/clients/rest/tenacity_utils.py +1 -1
- hatchet_sdk/v0/clients/run_event_listener.py +3 -3
- hatchet_sdk/v0/clients/workflow_listener.py +5 -5
- hatchet_sdk/v0/context/context.py +6 -6
- hatchet_sdk/v0/hatchet.py +4 -4
- hatchet_sdk/v0/opentelemetry/instrumentor.py +1 -1
- hatchet_sdk/v0/rate_limit.py +1 -1
- hatchet_sdk/v0/v2/callable.py +4 -4
- hatchet_sdk/v0/v2/concurrency.py +2 -2
- hatchet_sdk/v0/v2/hatchet.py +3 -3
- hatchet_sdk/v0/worker/action_listener_process.py +6 -6
- hatchet_sdk/v0/worker/runner/run_loop_manager.py +1 -1
- hatchet_sdk/v0/worker/runner/runner.py +10 -10
- hatchet_sdk/v0/worker/runner/utils/capture_logs.py +1 -1
- hatchet_sdk/v0/worker/worker.py +2 -2
- hatchet_sdk/v0/workflow.py +3 -3
- hatchet_sdk/waits.py +6 -5
- hatchet_sdk/worker/action_listener_process.py +33 -13
- hatchet_sdk/worker/runner/run_loop_manager.py +15 -11
- hatchet_sdk/worker/runner/runner.py +142 -80
- hatchet_sdk/worker/runner/utils/capture_logs.py +72 -31
- hatchet_sdk/worker/worker.py +30 -26
- hatchet_sdk/workflow_run.py +4 -2
- {hatchet_sdk-1.12.3.dist-info → hatchet_sdk-1.14.0.dist-info}/METADATA +1 -1
- {hatchet_sdk-1.12.3.dist-info → hatchet_sdk-1.14.0.dist-info}/RECORD +73 -83
- hatchet_sdk/v0/contracts/dispatcher_pb2.py +0 -102
- hatchet_sdk/v0/contracts/dispatcher_pb2.pyi +0 -387
- hatchet_sdk/v0/contracts/dispatcher_pb2_grpc.py +0 -621
- hatchet_sdk/v0/contracts/events_pb2.py +0 -46
- hatchet_sdk/v0/contracts/events_pb2.pyi +0 -87
- hatchet_sdk/v0/contracts/events_pb2_grpc.py +0 -274
- hatchet_sdk/v0/contracts/workflows_pb2.py +0 -80
- hatchet_sdk/v0/contracts/workflows_pb2.pyi +0 -312
- hatchet_sdk/v0/contracts/workflows_pb2_grpc.py +0 -277
- hatchet_sdk/v0/logger.py +0 -13
- {hatchet_sdk-1.12.3.dist-info → hatchet_sdk-1.14.0.dist-info}/WHEEL +0 -0
- {hatchet_sdk-1.12.3.dist-info → hatchet_sdk-1.14.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
2
|
-
from google.protobuf.internal import containers as _containers
|
|
3
|
-
from google.protobuf import descriptor as _descriptor
|
|
4
|
-
from google.protobuf import message as _message
|
|
5
|
-
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
6
|
-
|
|
7
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
-
|
|
9
|
-
class Event(_message.Message):
|
|
10
|
-
__slots__ = ("tenantId", "eventId", "key", "payload", "eventTimestamp", "additionalMetadata")
|
|
11
|
-
TENANTID_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
-
EVENTID_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
-
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
-
PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
-
EVENTTIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
-
ADDITIONALMETADATA_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
-
tenantId: str
|
|
18
|
-
eventId: str
|
|
19
|
-
key: str
|
|
20
|
-
payload: str
|
|
21
|
-
eventTimestamp: _timestamp_pb2.Timestamp
|
|
22
|
-
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
|
-
|
|
25
|
-
class Events(_message.Message):
|
|
26
|
-
__slots__ = ("events",)
|
|
27
|
-
EVENTS_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
-
events: _containers.RepeatedCompositeFieldContainer[Event]
|
|
29
|
-
def __init__(self, events: _Optional[_Iterable[_Union[Event, _Mapping]]] = ...) -> None: ...
|
|
30
|
-
|
|
31
|
-
class PutLogRequest(_message.Message):
|
|
32
|
-
__slots__ = ("stepRunId", "createdAt", "message", "level", "metadata")
|
|
33
|
-
STEPRUNID_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
-
CREATEDAT_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
-
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
-
LEVEL_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
-
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
-
stepRunId: str
|
|
39
|
-
createdAt: _timestamp_pb2.Timestamp
|
|
40
|
-
message: str
|
|
41
|
-
level: str
|
|
42
|
-
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: ...
|
|
44
|
-
|
|
45
|
-
class PutLogResponse(_message.Message):
|
|
46
|
-
__slots__ = ()
|
|
47
|
-
def __init__(self) -> None: ...
|
|
48
|
-
|
|
49
|
-
class PutStreamEventRequest(_message.Message):
|
|
50
|
-
__slots__ = ("stepRunId", "createdAt", "message", "metadata")
|
|
51
|
-
STEPRUNID_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
-
CREATEDAT_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
-
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
-
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
-
stepRunId: str
|
|
56
|
-
createdAt: _timestamp_pb2.Timestamp
|
|
57
|
-
message: bytes
|
|
58
|
-
metadata: str
|
|
59
|
-
def __init__(self, stepRunId: _Optional[str] = ..., createdAt: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., message: _Optional[bytes] = ..., metadata: _Optional[str] = ...) -> None: ...
|
|
60
|
-
|
|
61
|
-
class PutStreamEventResponse(_message.Message):
|
|
62
|
-
__slots__ = ()
|
|
63
|
-
def __init__(self) -> None: ...
|
|
64
|
-
|
|
65
|
-
class BulkPushEventRequest(_message.Message):
|
|
66
|
-
__slots__ = ("events",)
|
|
67
|
-
EVENTS_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
-
events: _containers.RepeatedCompositeFieldContainer[PushEventRequest]
|
|
69
|
-
def __init__(self, events: _Optional[_Iterable[_Union[PushEventRequest, _Mapping]]] = ...) -> None: ...
|
|
70
|
-
|
|
71
|
-
class PushEventRequest(_message.Message):
|
|
72
|
-
__slots__ = ("key", "payload", "eventTimestamp", "additionalMetadata")
|
|
73
|
-
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
-
PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
-
EVENTTIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
-
ADDITIONALMETADATA_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
-
key: str
|
|
78
|
-
payload: str
|
|
79
|
-
eventTimestamp: _timestamp_pb2.Timestamp
|
|
80
|
-
additionalMetadata: str
|
|
81
|
-
def __init__(self, key: _Optional[str] = ..., payload: _Optional[str] = ..., eventTimestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., additionalMetadata: _Optional[str] = ...) -> None: ...
|
|
82
|
-
|
|
83
|
-
class ReplayEventRequest(_message.Message):
|
|
84
|
-
__slots__ = ("eventId",)
|
|
85
|
-
EVENTID_FIELD_NUMBER: _ClassVar[int]
|
|
86
|
-
eventId: str
|
|
87
|
-
def __init__(self, eventId: _Optional[str] = ...) -> None: ...
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
-
import grpc
|
|
4
|
-
import warnings
|
|
5
|
-
|
|
6
|
-
from . import events_pb2 as events__pb2
|
|
7
|
-
|
|
8
|
-
GRPC_GENERATED_VERSION = '1.64.1'
|
|
9
|
-
GRPC_VERSION = grpc.__version__
|
|
10
|
-
EXPECTED_ERROR_RELEASE = '1.65.0'
|
|
11
|
-
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
|
|
12
|
-
_version_not_supported = False
|
|
13
|
-
|
|
14
|
-
try:
|
|
15
|
-
from grpc._utilities import first_version_is_lower
|
|
16
|
-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
17
|
-
except ImportError:
|
|
18
|
-
_version_not_supported = True
|
|
19
|
-
|
|
20
|
-
if _version_not_supported:
|
|
21
|
-
warnings.warn(
|
|
22
|
-
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
23
|
-
+ f' but the generated code in events_pb2_grpc.py depends on'
|
|
24
|
-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
25
|
-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
26
|
-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
27
|
-
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
|
|
28
|
-
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
|
|
29
|
-
RuntimeWarning
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class EventsServiceStub(object):
|
|
34
|
-
"""Missing associated documentation comment in .proto file."""
|
|
35
|
-
|
|
36
|
-
def __init__(self, channel):
|
|
37
|
-
"""Constructor.
|
|
38
|
-
|
|
39
|
-
Args:
|
|
40
|
-
channel: A grpc.Channel.
|
|
41
|
-
"""
|
|
42
|
-
self.Push = channel.unary_unary(
|
|
43
|
-
'/EventsService/Push',
|
|
44
|
-
request_serializer=events__pb2.PushEventRequest.SerializeToString,
|
|
45
|
-
response_deserializer=events__pb2.Event.FromString,
|
|
46
|
-
_registered_method=True)
|
|
47
|
-
self.BulkPush = channel.unary_unary(
|
|
48
|
-
'/EventsService/BulkPush',
|
|
49
|
-
request_serializer=events__pb2.BulkPushEventRequest.SerializeToString,
|
|
50
|
-
response_deserializer=events__pb2.Events.FromString,
|
|
51
|
-
_registered_method=True)
|
|
52
|
-
self.ReplaySingleEvent = channel.unary_unary(
|
|
53
|
-
'/EventsService/ReplaySingleEvent',
|
|
54
|
-
request_serializer=events__pb2.ReplayEventRequest.SerializeToString,
|
|
55
|
-
response_deserializer=events__pb2.Event.FromString,
|
|
56
|
-
_registered_method=True)
|
|
57
|
-
self.PutLog = channel.unary_unary(
|
|
58
|
-
'/EventsService/PutLog',
|
|
59
|
-
request_serializer=events__pb2.PutLogRequest.SerializeToString,
|
|
60
|
-
response_deserializer=events__pb2.PutLogResponse.FromString,
|
|
61
|
-
_registered_method=True)
|
|
62
|
-
self.PutStreamEvent = channel.unary_unary(
|
|
63
|
-
'/EventsService/PutStreamEvent',
|
|
64
|
-
request_serializer=events__pb2.PutStreamEventRequest.SerializeToString,
|
|
65
|
-
response_deserializer=events__pb2.PutStreamEventResponse.FromString,
|
|
66
|
-
_registered_method=True)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class EventsServiceServicer(object):
|
|
70
|
-
"""Missing associated documentation comment in .proto file."""
|
|
71
|
-
|
|
72
|
-
def Push(self, request, context):
|
|
73
|
-
"""Missing associated documentation comment in .proto file."""
|
|
74
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
75
|
-
context.set_details('Method not implemented!')
|
|
76
|
-
raise NotImplementedError('Method not implemented!')
|
|
77
|
-
|
|
78
|
-
def BulkPush(self, request, context):
|
|
79
|
-
"""Missing associated documentation comment in .proto file."""
|
|
80
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
81
|
-
context.set_details('Method not implemented!')
|
|
82
|
-
raise NotImplementedError('Method not implemented!')
|
|
83
|
-
|
|
84
|
-
def ReplaySingleEvent(self, request, context):
|
|
85
|
-
"""Missing associated documentation comment in .proto file."""
|
|
86
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
87
|
-
context.set_details('Method not implemented!')
|
|
88
|
-
raise NotImplementedError('Method not implemented!')
|
|
89
|
-
|
|
90
|
-
def PutLog(self, request, context):
|
|
91
|
-
"""Missing associated documentation comment in .proto file."""
|
|
92
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
93
|
-
context.set_details('Method not implemented!')
|
|
94
|
-
raise NotImplementedError('Method not implemented!')
|
|
95
|
-
|
|
96
|
-
def PutStreamEvent(self, request, context):
|
|
97
|
-
"""Missing associated documentation comment in .proto file."""
|
|
98
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
99
|
-
context.set_details('Method not implemented!')
|
|
100
|
-
raise NotImplementedError('Method not implemented!')
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
def add_EventsServiceServicer_to_server(servicer, server):
|
|
104
|
-
rpc_method_handlers = {
|
|
105
|
-
'Push': grpc.unary_unary_rpc_method_handler(
|
|
106
|
-
servicer.Push,
|
|
107
|
-
request_deserializer=events__pb2.PushEventRequest.FromString,
|
|
108
|
-
response_serializer=events__pb2.Event.SerializeToString,
|
|
109
|
-
),
|
|
110
|
-
'BulkPush': grpc.unary_unary_rpc_method_handler(
|
|
111
|
-
servicer.BulkPush,
|
|
112
|
-
request_deserializer=events__pb2.BulkPushEventRequest.FromString,
|
|
113
|
-
response_serializer=events__pb2.Events.SerializeToString,
|
|
114
|
-
),
|
|
115
|
-
'ReplaySingleEvent': grpc.unary_unary_rpc_method_handler(
|
|
116
|
-
servicer.ReplaySingleEvent,
|
|
117
|
-
request_deserializer=events__pb2.ReplayEventRequest.FromString,
|
|
118
|
-
response_serializer=events__pb2.Event.SerializeToString,
|
|
119
|
-
),
|
|
120
|
-
'PutLog': grpc.unary_unary_rpc_method_handler(
|
|
121
|
-
servicer.PutLog,
|
|
122
|
-
request_deserializer=events__pb2.PutLogRequest.FromString,
|
|
123
|
-
response_serializer=events__pb2.PutLogResponse.SerializeToString,
|
|
124
|
-
),
|
|
125
|
-
'PutStreamEvent': grpc.unary_unary_rpc_method_handler(
|
|
126
|
-
servicer.PutStreamEvent,
|
|
127
|
-
request_deserializer=events__pb2.PutStreamEventRequest.FromString,
|
|
128
|
-
response_serializer=events__pb2.PutStreamEventResponse.SerializeToString,
|
|
129
|
-
),
|
|
130
|
-
}
|
|
131
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
|
132
|
-
'EventsService', rpc_method_handlers)
|
|
133
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
|
134
|
-
server.add_registered_method_handlers('EventsService', rpc_method_handlers)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
# This class is part of an EXPERIMENTAL API.
|
|
138
|
-
class EventsService(object):
|
|
139
|
-
"""Missing associated documentation comment in .proto file."""
|
|
140
|
-
|
|
141
|
-
@staticmethod
|
|
142
|
-
def Push(request,
|
|
143
|
-
target,
|
|
144
|
-
options=(),
|
|
145
|
-
channel_credentials=None,
|
|
146
|
-
call_credentials=None,
|
|
147
|
-
insecure=False,
|
|
148
|
-
compression=None,
|
|
149
|
-
wait_for_ready=None,
|
|
150
|
-
timeout=None,
|
|
151
|
-
metadata=None):
|
|
152
|
-
return grpc.experimental.unary_unary(
|
|
153
|
-
request,
|
|
154
|
-
target,
|
|
155
|
-
'/EventsService/Push',
|
|
156
|
-
events__pb2.PushEventRequest.SerializeToString,
|
|
157
|
-
events__pb2.Event.FromString,
|
|
158
|
-
options,
|
|
159
|
-
channel_credentials,
|
|
160
|
-
insecure,
|
|
161
|
-
call_credentials,
|
|
162
|
-
compression,
|
|
163
|
-
wait_for_ready,
|
|
164
|
-
timeout,
|
|
165
|
-
metadata,
|
|
166
|
-
_registered_method=True)
|
|
167
|
-
|
|
168
|
-
@staticmethod
|
|
169
|
-
def BulkPush(request,
|
|
170
|
-
target,
|
|
171
|
-
options=(),
|
|
172
|
-
channel_credentials=None,
|
|
173
|
-
call_credentials=None,
|
|
174
|
-
insecure=False,
|
|
175
|
-
compression=None,
|
|
176
|
-
wait_for_ready=None,
|
|
177
|
-
timeout=None,
|
|
178
|
-
metadata=None):
|
|
179
|
-
return grpc.experimental.unary_unary(
|
|
180
|
-
request,
|
|
181
|
-
target,
|
|
182
|
-
'/EventsService/BulkPush',
|
|
183
|
-
events__pb2.BulkPushEventRequest.SerializeToString,
|
|
184
|
-
events__pb2.Events.FromString,
|
|
185
|
-
options,
|
|
186
|
-
channel_credentials,
|
|
187
|
-
insecure,
|
|
188
|
-
call_credentials,
|
|
189
|
-
compression,
|
|
190
|
-
wait_for_ready,
|
|
191
|
-
timeout,
|
|
192
|
-
metadata,
|
|
193
|
-
_registered_method=True)
|
|
194
|
-
|
|
195
|
-
@staticmethod
|
|
196
|
-
def ReplaySingleEvent(request,
|
|
197
|
-
target,
|
|
198
|
-
options=(),
|
|
199
|
-
channel_credentials=None,
|
|
200
|
-
call_credentials=None,
|
|
201
|
-
insecure=False,
|
|
202
|
-
compression=None,
|
|
203
|
-
wait_for_ready=None,
|
|
204
|
-
timeout=None,
|
|
205
|
-
metadata=None):
|
|
206
|
-
return grpc.experimental.unary_unary(
|
|
207
|
-
request,
|
|
208
|
-
target,
|
|
209
|
-
'/EventsService/ReplaySingleEvent',
|
|
210
|
-
events__pb2.ReplayEventRequest.SerializeToString,
|
|
211
|
-
events__pb2.Event.FromString,
|
|
212
|
-
options,
|
|
213
|
-
channel_credentials,
|
|
214
|
-
insecure,
|
|
215
|
-
call_credentials,
|
|
216
|
-
compression,
|
|
217
|
-
wait_for_ready,
|
|
218
|
-
timeout,
|
|
219
|
-
metadata,
|
|
220
|
-
_registered_method=True)
|
|
221
|
-
|
|
222
|
-
@staticmethod
|
|
223
|
-
def PutLog(request,
|
|
224
|
-
target,
|
|
225
|
-
options=(),
|
|
226
|
-
channel_credentials=None,
|
|
227
|
-
call_credentials=None,
|
|
228
|
-
insecure=False,
|
|
229
|
-
compression=None,
|
|
230
|
-
wait_for_ready=None,
|
|
231
|
-
timeout=None,
|
|
232
|
-
metadata=None):
|
|
233
|
-
return grpc.experimental.unary_unary(
|
|
234
|
-
request,
|
|
235
|
-
target,
|
|
236
|
-
'/EventsService/PutLog',
|
|
237
|
-
events__pb2.PutLogRequest.SerializeToString,
|
|
238
|
-
events__pb2.PutLogResponse.FromString,
|
|
239
|
-
options,
|
|
240
|
-
channel_credentials,
|
|
241
|
-
insecure,
|
|
242
|
-
call_credentials,
|
|
243
|
-
compression,
|
|
244
|
-
wait_for_ready,
|
|
245
|
-
timeout,
|
|
246
|
-
metadata,
|
|
247
|
-
_registered_method=True)
|
|
248
|
-
|
|
249
|
-
@staticmethod
|
|
250
|
-
def PutStreamEvent(request,
|
|
251
|
-
target,
|
|
252
|
-
options=(),
|
|
253
|
-
channel_credentials=None,
|
|
254
|
-
call_credentials=None,
|
|
255
|
-
insecure=False,
|
|
256
|
-
compression=None,
|
|
257
|
-
wait_for_ready=None,
|
|
258
|
-
timeout=None,
|
|
259
|
-
metadata=None):
|
|
260
|
-
return grpc.experimental.unary_unary(
|
|
261
|
-
request,
|
|
262
|
-
target,
|
|
263
|
-
'/EventsService/PutStreamEvent',
|
|
264
|
-
events__pb2.PutStreamEventRequest.SerializeToString,
|
|
265
|
-
events__pb2.PutStreamEventResponse.FromString,
|
|
266
|
-
options,
|
|
267
|
-
channel_credentials,
|
|
268
|
-
insecure,
|
|
269
|
-
call_credentials,
|
|
270
|
-
compression,
|
|
271
|
-
wait_for_ready,
|
|
272
|
-
timeout,
|
|
273
|
-
metadata,
|
|
274
|
-
_registered_method=True)
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: workflows.proto
|
|
4
|
-
# Protobuf Python Version: 5.26.1
|
|
5
|
-
"""Generated protocol buffer code."""
|
|
6
|
-
from google.protobuf import descriptor as _descriptor
|
|
7
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
-
from google.protobuf.internal import builder as _builder
|
|
10
|
-
# @@protoc_insertion_point(imports)
|
|
11
|
-
|
|
12
|
-
_sym_db = _symbol_database.Default()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fworkflows.proto\x1a\x1fgoogle/protobuf/timestamp.proto\">\n\x12PutWorkflowRequest\x12(\n\x04opts\x18\x01 \x01(\x0b\x32\x1a.CreateWorkflowVersionOpts\"\xbf\x04\n\x19\x43reateWorkflowVersionOpts\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x16\n\x0e\x65vent_triggers\x18\x04 \x03(\t\x12\x15\n\rcron_triggers\x18\x05 \x03(\t\x12\x36\n\x12scheduled_triggers\x18\x06 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12$\n\x04jobs\x18\x07 \x03(\x0b\x32\x16.CreateWorkflowJobOpts\x12-\n\x0b\x63oncurrency\x18\x08 \x01(\x0b\x32\x18.WorkflowConcurrencyOpts\x12\x1d\n\x10schedule_timeout\x18\t \x01(\tH\x00\x88\x01\x01\x12\x17\n\ncron_input\x18\n \x01(\tH\x01\x88\x01\x01\x12\x33\n\x0eon_failure_job\x18\x0b \x01(\x0b\x32\x16.CreateWorkflowJobOptsH\x02\x88\x01\x01\x12$\n\x06sticky\x18\x0c \x01(\x0e\x32\x0f.StickyStrategyH\x03\x88\x01\x01\x12 \n\x04kind\x18\r \x01(\x0e\x32\r.WorkflowKindH\x04\x88\x01\x01\x12\x1d\n\x10\x64\x65\x66\x61ult_priority\x18\x0e \x01(\x05H\x05\x88\x01\x01\x42\x13\n\x11_schedule_timeoutB\r\n\x0b_cron_inputB\x11\n\x0f_on_failure_jobB\t\n\x07_stickyB\x07\n\x05_kindB\x13\n\x11_default_priority\"\xd0\x01\n\x17WorkflowConcurrencyOpts\x12\x13\n\x06\x61\x63tion\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08max_runs\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x36\n\x0elimit_strategy\x18\x03 \x01(\x0e\x32\x19.ConcurrencyLimitStrategyH\x02\x88\x01\x01\x12\x17\n\nexpression\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\t\n\x07_actionB\x0b\n\t_max_runsB\x11\n\x0f_limit_strategyB\r\n\x0b_expression\"h\n\x15\x43reateWorkflowJobOpts\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12&\n\x05steps\x18\x04 \x03(\x0b\x32\x17.CreateWorkflowStepOptsJ\x04\x08\x03\x10\x04\"\xe1\x01\n\x13\x44\x65siredWorkerLabels\x12\x15\n\x08strValue\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08intValue\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x15\n\x08required\x18\x03 \x01(\x08H\x02\x88\x01\x01\x12/\n\ncomparator\x18\x04 \x01(\x0e\x32\x16.WorkerLabelComparatorH\x03\x88\x01\x01\x12\x13\n\x06weight\x18\x05 \x01(\x05H\x04\x88\x01\x01\x42\x0b\n\t_strValueB\x0b\n\t_intValueB\x0b\n\t_requiredB\r\n\x0b_comparatorB\t\n\x07_weight\"\xb5\x03\n\x16\x43reateWorkflowStepOpts\x12\x13\n\x0breadable_id\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\t\x12\x0e\n\x06inputs\x18\x04 \x01(\t\x12\x0f\n\x07parents\x18\x05 \x03(\t\x12\x11\n\tuser_data\x18\x06 \x01(\t\x12\x0f\n\x07retries\x18\x07 \x01(\x05\x12)\n\x0brate_limits\x18\x08 \x03(\x0b\x32\x14.CreateStepRateLimit\x12@\n\rworker_labels\x18\t \x03(\x0b\x32).CreateWorkflowStepOpts.WorkerLabelsEntry\x12\x1b\n\x0e\x62\x61\x63koff_factor\x18\n \x01(\x02H\x00\x88\x01\x01\x12 \n\x13\x62\x61\x63koff_max_seconds\x18\x0b \x01(\x05H\x01\x88\x01\x01\x1aI\n\x11WorkerLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.DesiredWorkerLabels:\x02\x38\x01\x42\x11\n\x0f_backoff_factorB\x16\n\x14_backoff_max_seconds\"\xfa\x01\n\x13\x43reateStepRateLimit\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x12\n\x05units\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08key_expr\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x17\n\nunits_expr\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11limit_values_expr\x18\x05 \x01(\tH\x03\x88\x01\x01\x12)\n\x08\x64uration\x18\x06 \x01(\x0e\x32\x12.RateLimitDurationH\x04\x88\x01\x01\x42\x08\n\x06_unitsB\x0b\n\t_key_exprB\r\n\x0b_units_exprB\x14\n\x12_limit_values_exprB\x0b\n\t_duration\"\x16\n\x14ListWorkflowsRequest\"\xcd\x02\n\x17ScheduleWorkflowRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12-\n\tschedules\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05input\x18\x03 \x01(\t\x12\x16\n\tparent_id\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1f\n\x12parent_step_run_id\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x63hild_index\x18\x06 \x01(\x05H\x02\x88\x01\x01\x12\x16\n\tchild_key\x18\x07 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x61\x64\x64itional_metadata\x18\x08 \x01(\tH\x04\x88\x01\x01\x42\x0c\n\n_parent_idB\x15\n\x13_parent_step_run_idB\x0e\n\x0c_child_indexB\x0c\n\n_child_keyB\x16\n\x14_additional_metadata\"O\n\x11ScheduledWorkflow\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ntrigger_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe3\x01\n\x0fWorkflowVersion\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07version\x18\x05 \x01(\t\x12\r\n\x05order\x18\x06 \x01(\x03\x12\x13\n\x0bworkflow_id\x18\x07 \x01(\t\x12/\n\x13scheduled_workflows\x18\x08 \x03(\x0b\x32\x12.ScheduledWorkflow\"?\n\x17WorkflowTriggerEventRef\x12\x11\n\tparent_id\x18\x01 \x01(\t\x12\x11\n\tevent_key\x18\x02 \x01(\t\"9\n\x16WorkflowTriggerCronRef\x12\x11\n\tparent_id\x18\x01 \x01(\t\x12\x0c\n\x04\x63ron\x18\x02 \x01(\t\"H\n\x1a\x42ulkTriggerWorkflowRequest\x12*\n\tworkflows\x18\x01 \x03(\x0b\x32\x17.TriggerWorkflowRequest\"7\n\x1b\x42ulkTriggerWorkflowResponse\x12\x18\n\x10workflow_run_ids\x18\x01 \x03(\t\"\xf7\x02\n\x16TriggerWorkflowRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05input\x18\x02 \x01(\t\x12\x16\n\tparent_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1f\n\x12parent_step_run_id\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x63hild_index\x18\x05 \x01(\x05H\x02\x88\x01\x01\x12\x16\n\tchild_key\x18\x06 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x61\x64\x64itional_metadata\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x1e\n\x11\x64\x65sired_worker_id\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\x15\n\x08priority\x18\t \x01(\x05H\x06\x88\x01\x01\x42\x0c\n\n_parent_idB\x15\n\x13_parent_step_run_idB\x0e\n\x0c_child_indexB\x0c\n\n_child_keyB\x16\n\x14_additional_metadataB\x14\n\x12_desired_worker_idB\x0b\n\t_priority\"2\n\x17TriggerWorkflowResponse\x12\x17\n\x0fworkflow_run_id\x18\x01 \x01(\t\"W\n\x13PutRateLimitRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x05\x12$\n\x08\x64uration\x18\x03 \x01(\x0e\x32\x12.RateLimitDuration\"\x16\n\x14PutRateLimitResponse*$\n\x0eStickyStrategy\x12\x08\n\x04SOFT\x10\x00\x12\x08\n\x04HARD\x10\x01*2\n\x0cWorkflowKind\x12\x0c\n\x08\x46UNCTION\x10\x00\x12\x0b\n\x07\x44URABLE\x10\x01\x12\x07\n\x03\x44\x41G\x10\x02*\x7f\n\x18\x43oncurrencyLimitStrategy\x12\x16\n\x12\x43\x41NCEL_IN_PROGRESS\x10\x00\x12\x0f\n\x0b\x44ROP_NEWEST\x10\x01\x12\x10\n\x0cQUEUE_NEWEST\x10\x02\x12\x15\n\x11GROUP_ROUND_ROBIN\x10\x03\x12\x11\n\rCANCEL_NEWEST\x10\x04*\x85\x01\n\x15WorkerLabelComparator\x12\t\n\x05\x45QUAL\x10\x00\x12\r\n\tNOT_EQUAL\x10\x01\x12\x10\n\x0cGREATER_THAN\x10\x02\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x03\x12\r\n\tLESS_THAN\x10\x04\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x05*]\n\x11RateLimitDuration\x12\n\n\x06SECOND\x10\x00\x12\n\n\x06MINUTE\x10\x01\x12\x08\n\x04HOUR\x10\x02\x12\x07\n\x03\x44\x41Y\x10\x03\x12\x08\n\x04WEEK\x10\x04\x12\t\n\x05MONTH\x10\x05\x12\x08\n\x04YEAR\x10\x06\x32\xdc\x02\n\x0fWorkflowService\x12\x34\n\x0bPutWorkflow\x12\x13.PutWorkflowRequest\x1a\x10.WorkflowVersion\x12>\n\x10ScheduleWorkflow\x12\x18.ScheduleWorkflowRequest\x1a\x10.WorkflowVersion\x12\x44\n\x0fTriggerWorkflow\x12\x17.TriggerWorkflowRequest\x1a\x18.TriggerWorkflowResponse\x12P\n\x13\x42ulkTriggerWorkflow\x12\x1b.BulkTriggerWorkflowRequest\x1a\x1c.BulkTriggerWorkflowResponse\x12;\n\x0cPutRateLimit\x12\x14.PutRateLimitRequest\x1a\x15.PutRateLimitResponseBBZ@github.com/hatchet-dev/hatchet/internal/services/admin/contractsb\x06proto3')
|
|
19
|
-
|
|
20
|
-
_globals = globals()
|
|
21
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflows_pb2', _globals)
|
|
23
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
24
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
25
|
-
_globals['DESCRIPTOR']._serialized_options = b'Z@github.com/hatchet-dev/hatchet/internal/services/admin/contracts'
|
|
26
|
-
_globals['_CREATEWORKFLOWSTEPOPTS_WORKERLABELSENTRY']._loaded_options = None
|
|
27
|
-
_globals['_CREATEWORKFLOWSTEPOPTS_WORKERLABELSENTRY']._serialized_options = b'8\001'
|
|
28
|
-
_globals['_STICKYSTRATEGY']._serialized_start=3401
|
|
29
|
-
_globals['_STICKYSTRATEGY']._serialized_end=3437
|
|
30
|
-
_globals['_WORKFLOWKIND']._serialized_start=3439
|
|
31
|
-
_globals['_WORKFLOWKIND']._serialized_end=3489
|
|
32
|
-
_globals['_CONCURRENCYLIMITSTRATEGY']._serialized_start=3491
|
|
33
|
-
_globals['_CONCURRENCYLIMITSTRATEGY']._serialized_end=3618
|
|
34
|
-
_globals['_WORKERLABELCOMPARATOR']._serialized_start=3621
|
|
35
|
-
_globals['_WORKERLABELCOMPARATOR']._serialized_end=3754
|
|
36
|
-
_globals['_RATELIMITDURATION']._serialized_start=3756
|
|
37
|
-
_globals['_RATELIMITDURATION']._serialized_end=3849
|
|
38
|
-
_globals['_PUTWORKFLOWREQUEST']._serialized_start=52
|
|
39
|
-
_globals['_PUTWORKFLOWREQUEST']._serialized_end=114
|
|
40
|
-
_globals['_CREATEWORKFLOWVERSIONOPTS']._serialized_start=117
|
|
41
|
-
_globals['_CREATEWORKFLOWVERSIONOPTS']._serialized_end=692
|
|
42
|
-
_globals['_WORKFLOWCONCURRENCYOPTS']._serialized_start=695
|
|
43
|
-
_globals['_WORKFLOWCONCURRENCYOPTS']._serialized_end=903
|
|
44
|
-
_globals['_CREATEWORKFLOWJOBOPTS']._serialized_start=905
|
|
45
|
-
_globals['_CREATEWORKFLOWJOBOPTS']._serialized_end=1009
|
|
46
|
-
_globals['_DESIREDWORKERLABELS']._serialized_start=1012
|
|
47
|
-
_globals['_DESIREDWORKERLABELS']._serialized_end=1237
|
|
48
|
-
_globals['_CREATEWORKFLOWSTEPOPTS']._serialized_start=1240
|
|
49
|
-
_globals['_CREATEWORKFLOWSTEPOPTS']._serialized_end=1677
|
|
50
|
-
_globals['_CREATEWORKFLOWSTEPOPTS_WORKERLABELSENTRY']._serialized_start=1561
|
|
51
|
-
_globals['_CREATEWORKFLOWSTEPOPTS_WORKERLABELSENTRY']._serialized_end=1634
|
|
52
|
-
_globals['_CREATESTEPRATELIMIT']._serialized_start=1680
|
|
53
|
-
_globals['_CREATESTEPRATELIMIT']._serialized_end=1930
|
|
54
|
-
_globals['_LISTWORKFLOWSREQUEST']._serialized_start=1932
|
|
55
|
-
_globals['_LISTWORKFLOWSREQUEST']._serialized_end=1954
|
|
56
|
-
_globals['_SCHEDULEWORKFLOWREQUEST']._serialized_start=1957
|
|
57
|
-
_globals['_SCHEDULEWORKFLOWREQUEST']._serialized_end=2290
|
|
58
|
-
_globals['_SCHEDULEDWORKFLOW']._serialized_start=2292
|
|
59
|
-
_globals['_SCHEDULEDWORKFLOW']._serialized_end=2371
|
|
60
|
-
_globals['_WORKFLOWVERSION']._serialized_start=2374
|
|
61
|
-
_globals['_WORKFLOWVERSION']._serialized_end=2601
|
|
62
|
-
_globals['_WORKFLOWTRIGGEREVENTREF']._serialized_start=2603
|
|
63
|
-
_globals['_WORKFLOWTRIGGEREVENTREF']._serialized_end=2666
|
|
64
|
-
_globals['_WORKFLOWTRIGGERCRONREF']._serialized_start=2668
|
|
65
|
-
_globals['_WORKFLOWTRIGGERCRONREF']._serialized_end=2725
|
|
66
|
-
_globals['_BULKTRIGGERWORKFLOWREQUEST']._serialized_start=2727
|
|
67
|
-
_globals['_BULKTRIGGERWORKFLOWREQUEST']._serialized_end=2799
|
|
68
|
-
_globals['_BULKTRIGGERWORKFLOWRESPONSE']._serialized_start=2801
|
|
69
|
-
_globals['_BULKTRIGGERWORKFLOWRESPONSE']._serialized_end=2856
|
|
70
|
-
_globals['_TRIGGERWORKFLOWREQUEST']._serialized_start=2859
|
|
71
|
-
_globals['_TRIGGERWORKFLOWREQUEST']._serialized_end=3234
|
|
72
|
-
_globals['_TRIGGERWORKFLOWRESPONSE']._serialized_start=3236
|
|
73
|
-
_globals['_TRIGGERWORKFLOWRESPONSE']._serialized_end=3286
|
|
74
|
-
_globals['_PUTRATELIMITREQUEST']._serialized_start=3288
|
|
75
|
-
_globals['_PUTRATELIMITREQUEST']._serialized_end=3375
|
|
76
|
-
_globals['_PUTRATELIMITRESPONSE']._serialized_start=3377
|
|
77
|
-
_globals['_PUTRATELIMITRESPONSE']._serialized_end=3399
|
|
78
|
-
_globals['_WORKFLOWSERVICE']._serialized_start=3852
|
|
79
|
-
_globals['_WORKFLOWSERVICE']._serialized_end=4200
|
|
80
|
-
# @@protoc_insertion_point(module_scope)
|