ringo-task-queue 0.1.0.dev0__py3-none-win_amd64.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.
- ringo_task_queue/__init__.py +68 -0
- ringo_task_queue/_pb.py +154 -0
- ringo_task_queue/_proto/ringo/v1/queue_pb2.py +133 -0
- ringo_task_queue/_proto/ringo/v1/queue_pb2_grpc.py +574 -0
- ringo_task_queue/_version.py +13 -0
- ringo_task_queue/bin/manifest.json +20 -0
- ringo_task_queue/bin/ringo-task-queue-windows-amd64.exe +0 -0
- ringo_task_queue/binary.py +253 -0
- ringo_task_queue/client.py +863 -0
- ringo_task_queue/daemon.py +507 -0
- ringo_task_queue/errors.py +152 -0
- ringo_task_queue/models.py +364 -0
- ringo_task_queue/py.typed +0 -0
- ringo_task_queue/worker.py +785 -0
- ringo_task_queue-0.1.0.dev0.dist-info/METADATA +445 -0
- ringo_task_queue-0.1.0.dev0.dist-info/RECORD +18 -0
- ringo_task_queue-0.1.0.dev0.dist-info/WHEEL +4 -0
- ringo_task_queue-0.1.0.dev0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
# Code generated by protoc (grpc_tools). DO NOT EDIT.
|
|
2
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
3
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
4
|
+
import grpc
|
|
5
|
+
import warnings
|
|
6
|
+
|
|
7
|
+
from ringo_task_queue._proto.ringo.v1 import queue_pb2 as ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2
|
|
8
|
+
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.71.0'
|
|
10
|
+
GRPC_VERSION = grpc.__version__
|
|
11
|
+
_version_not_supported = False
|
|
12
|
+
|
|
13
|
+
try:
|
|
14
|
+
from grpc._utilities import first_version_is_lower
|
|
15
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
16
|
+
except ImportError:
|
|
17
|
+
_version_not_supported = True
|
|
18
|
+
|
|
19
|
+
if _version_not_supported:
|
|
20
|
+
raise RuntimeError(
|
|
21
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
22
|
+
+ f' but the generated code in ringo_task_queue/_proto/ringo/v1/queue_pb2_grpc.py depends on'
|
|
23
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
24
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
25
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class QueueServiceStub(object):
|
|
30
|
+
"""QueueService is the versioned data plane used by every SDK.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, channel):
|
|
34
|
+
"""Constructor.
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
channel: A grpc.Channel.
|
|
38
|
+
"""
|
|
39
|
+
self.Negotiate = channel.unary_unary(
|
|
40
|
+
'/ringo.v1.QueueService/Negotiate',
|
|
41
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NegotiateRequest.SerializeToString,
|
|
42
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NegotiateResponse.FromString,
|
|
43
|
+
_registered_method=True)
|
|
44
|
+
self.Enqueue = channel.unary_unary(
|
|
45
|
+
'/ringo.v1.QueueService/Enqueue',
|
|
46
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueRequest.SerializeToString,
|
|
47
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueResponse.FromString,
|
|
48
|
+
_registered_method=True)
|
|
49
|
+
self.EnqueueMany = channel.unary_unary(
|
|
50
|
+
'/ringo.v1.QueueService/EnqueueMany',
|
|
51
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueManyRequest.SerializeToString,
|
|
52
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueManyResponse.FromString,
|
|
53
|
+
_registered_method=True)
|
|
54
|
+
self.GetTask = channel.unary_unary(
|
|
55
|
+
'/ringo.v1.QueueService/GetTask',
|
|
56
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.GetTaskRequest.SerializeToString,
|
|
57
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.GetTaskResponse.FromString,
|
|
58
|
+
_registered_method=True)
|
|
59
|
+
self.RetryTask = channel.unary_unary(
|
|
60
|
+
'/ringo.v1.QueueService/RetryTask',
|
|
61
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RetryTaskRequest.SerializeToString,
|
|
62
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RetryTaskResponse.FromString,
|
|
63
|
+
_registered_method=True)
|
|
64
|
+
self.Claim = channel.unary_unary(
|
|
65
|
+
'/ringo.v1.QueueService/Claim',
|
|
66
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ClaimRequest.SerializeToString,
|
|
67
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ClaimResponse.FromString,
|
|
68
|
+
_registered_method=True)
|
|
69
|
+
self.Ack = channel.unary_unary(
|
|
70
|
+
'/ringo.v1.QueueService/Ack',
|
|
71
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.AckRequest.SerializeToString,
|
|
72
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.AckResponse.FromString,
|
|
73
|
+
_registered_method=True)
|
|
74
|
+
self.Nack = channel.unary_unary(
|
|
75
|
+
'/ringo.v1.QueueService/Nack',
|
|
76
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NackRequest.SerializeToString,
|
|
77
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NackResponse.FromString,
|
|
78
|
+
_registered_method=True)
|
|
79
|
+
self.Reject = channel.unary_unary(
|
|
80
|
+
'/ringo.v1.QueueService/Reject',
|
|
81
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RejectRequest.SerializeToString,
|
|
82
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RejectResponse.FromString,
|
|
83
|
+
_registered_method=True)
|
|
84
|
+
self.ExtendLease = channel.unary_unary(
|
|
85
|
+
'/ringo.v1.QueueService/ExtendLease',
|
|
86
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ExtendLeaseRequest.SerializeToString,
|
|
87
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ExtendLeaseResponse.FromString,
|
|
88
|
+
_registered_method=True)
|
|
89
|
+
self.ReportProgress = channel.unary_unary(
|
|
90
|
+
'/ringo.v1.QueueService/ReportProgress',
|
|
91
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ReportProgressRequest.SerializeToString,
|
|
92
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ReportProgressResponse.FromString,
|
|
93
|
+
_registered_method=True)
|
|
94
|
+
self.Work = channel.stream_stream(
|
|
95
|
+
'/ringo.v1.QueueService/Work',
|
|
96
|
+
request_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.WorkRequest.SerializeToString,
|
|
97
|
+
response_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.WorkResponse.FromString,
|
|
98
|
+
_registered_method=True)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class QueueServiceServicer(object):
|
|
102
|
+
"""QueueService is the versioned data plane used by every SDK.
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
def Negotiate(self, request, context):
|
|
106
|
+
"""Missing associated documentation comment in .proto file."""
|
|
107
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
108
|
+
context.set_details('Method not implemented!')
|
|
109
|
+
raise NotImplementedError('Method not implemented!')
|
|
110
|
+
|
|
111
|
+
def Enqueue(self, request, context):
|
|
112
|
+
"""Missing associated documentation comment in .proto file."""
|
|
113
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
114
|
+
context.set_details('Method not implemented!')
|
|
115
|
+
raise NotImplementedError('Method not implemented!')
|
|
116
|
+
|
|
117
|
+
def EnqueueMany(self, request, context):
|
|
118
|
+
"""Missing associated documentation comment in .proto file."""
|
|
119
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
120
|
+
context.set_details('Method not implemented!')
|
|
121
|
+
raise NotImplementedError('Method not implemented!')
|
|
122
|
+
|
|
123
|
+
def GetTask(self, request, context):
|
|
124
|
+
"""Missing associated documentation comment in .proto file."""
|
|
125
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
126
|
+
context.set_details('Method not implemented!')
|
|
127
|
+
raise NotImplementedError('Method not implemented!')
|
|
128
|
+
|
|
129
|
+
def RetryTask(self, request, context):
|
|
130
|
+
"""Missing associated documentation comment in .proto file."""
|
|
131
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
132
|
+
context.set_details('Method not implemented!')
|
|
133
|
+
raise NotImplementedError('Method not implemented!')
|
|
134
|
+
|
|
135
|
+
def Claim(self, request, context):
|
|
136
|
+
"""Missing associated documentation comment in .proto file."""
|
|
137
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
138
|
+
context.set_details('Method not implemented!')
|
|
139
|
+
raise NotImplementedError('Method not implemented!')
|
|
140
|
+
|
|
141
|
+
def Ack(self, request, context):
|
|
142
|
+
"""Missing associated documentation comment in .proto file."""
|
|
143
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
144
|
+
context.set_details('Method not implemented!')
|
|
145
|
+
raise NotImplementedError('Method not implemented!')
|
|
146
|
+
|
|
147
|
+
def Nack(self, request, context):
|
|
148
|
+
"""Missing associated documentation comment in .proto file."""
|
|
149
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
150
|
+
context.set_details('Method not implemented!')
|
|
151
|
+
raise NotImplementedError('Method not implemented!')
|
|
152
|
+
|
|
153
|
+
def Reject(self, request, context):
|
|
154
|
+
"""Missing associated documentation comment in .proto file."""
|
|
155
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
156
|
+
context.set_details('Method not implemented!')
|
|
157
|
+
raise NotImplementedError('Method not implemented!')
|
|
158
|
+
|
|
159
|
+
def ExtendLease(self, request, context):
|
|
160
|
+
"""Missing associated documentation comment in .proto file."""
|
|
161
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
162
|
+
context.set_details('Method not implemented!')
|
|
163
|
+
raise NotImplementedError('Method not implemented!')
|
|
164
|
+
|
|
165
|
+
def ReportProgress(self, request, context):
|
|
166
|
+
"""Missing associated documentation comment in .proto file."""
|
|
167
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
168
|
+
context.set_details('Method not implemented!')
|
|
169
|
+
raise NotImplementedError('Method not implemented!')
|
|
170
|
+
|
|
171
|
+
def Work(self, request_iterator, context):
|
|
172
|
+
"""Missing associated documentation comment in .proto file."""
|
|
173
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
174
|
+
context.set_details('Method not implemented!')
|
|
175
|
+
raise NotImplementedError('Method not implemented!')
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def add_QueueServiceServicer_to_server(servicer, server):
|
|
179
|
+
rpc_method_handlers = {
|
|
180
|
+
'Negotiate': grpc.unary_unary_rpc_method_handler(
|
|
181
|
+
servicer.Negotiate,
|
|
182
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NegotiateRequest.FromString,
|
|
183
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NegotiateResponse.SerializeToString,
|
|
184
|
+
),
|
|
185
|
+
'Enqueue': grpc.unary_unary_rpc_method_handler(
|
|
186
|
+
servicer.Enqueue,
|
|
187
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueRequest.FromString,
|
|
188
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueResponse.SerializeToString,
|
|
189
|
+
),
|
|
190
|
+
'EnqueueMany': grpc.unary_unary_rpc_method_handler(
|
|
191
|
+
servicer.EnqueueMany,
|
|
192
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueManyRequest.FromString,
|
|
193
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueManyResponse.SerializeToString,
|
|
194
|
+
),
|
|
195
|
+
'GetTask': grpc.unary_unary_rpc_method_handler(
|
|
196
|
+
servicer.GetTask,
|
|
197
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.GetTaskRequest.FromString,
|
|
198
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.GetTaskResponse.SerializeToString,
|
|
199
|
+
),
|
|
200
|
+
'RetryTask': grpc.unary_unary_rpc_method_handler(
|
|
201
|
+
servicer.RetryTask,
|
|
202
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RetryTaskRequest.FromString,
|
|
203
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RetryTaskResponse.SerializeToString,
|
|
204
|
+
),
|
|
205
|
+
'Claim': grpc.unary_unary_rpc_method_handler(
|
|
206
|
+
servicer.Claim,
|
|
207
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ClaimRequest.FromString,
|
|
208
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ClaimResponse.SerializeToString,
|
|
209
|
+
),
|
|
210
|
+
'Ack': grpc.unary_unary_rpc_method_handler(
|
|
211
|
+
servicer.Ack,
|
|
212
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.AckRequest.FromString,
|
|
213
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.AckResponse.SerializeToString,
|
|
214
|
+
),
|
|
215
|
+
'Nack': grpc.unary_unary_rpc_method_handler(
|
|
216
|
+
servicer.Nack,
|
|
217
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NackRequest.FromString,
|
|
218
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NackResponse.SerializeToString,
|
|
219
|
+
),
|
|
220
|
+
'Reject': grpc.unary_unary_rpc_method_handler(
|
|
221
|
+
servicer.Reject,
|
|
222
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RejectRequest.FromString,
|
|
223
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RejectResponse.SerializeToString,
|
|
224
|
+
),
|
|
225
|
+
'ExtendLease': grpc.unary_unary_rpc_method_handler(
|
|
226
|
+
servicer.ExtendLease,
|
|
227
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ExtendLeaseRequest.FromString,
|
|
228
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ExtendLeaseResponse.SerializeToString,
|
|
229
|
+
),
|
|
230
|
+
'ReportProgress': grpc.unary_unary_rpc_method_handler(
|
|
231
|
+
servicer.ReportProgress,
|
|
232
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ReportProgressRequest.FromString,
|
|
233
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ReportProgressResponse.SerializeToString,
|
|
234
|
+
),
|
|
235
|
+
'Work': grpc.stream_stream_rpc_method_handler(
|
|
236
|
+
servicer.Work,
|
|
237
|
+
request_deserializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.WorkRequest.FromString,
|
|
238
|
+
response_serializer=ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.WorkResponse.SerializeToString,
|
|
239
|
+
),
|
|
240
|
+
}
|
|
241
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
242
|
+
'ringo.v1.QueueService', rpc_method_handlers)
|
|
243
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
244
|
+
server.add_registered_method_handlers('ringo.v1.QueueService', rpc_method_handlers)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
# This class is part of an EXPERIMENTAL API.
|
|
248
|
+
class QueueService(object):
|
|
249
|
+
"""QueueService is the versioned data plane used by every SDK.
|
|
250
|
+
"""
|
|
251
|
+
|
|
252
|
+
@staticmethod
|
|
253
|
+
def Negotiate(request,
|
|
254
|
+
target,
|
|
255
|
+
options=(),
|
|
256
|
+
channel_credentials=None,
|
|
257
|
+
call_credentials=None,
|
|
258
|
+
insecure=False,
|
|
259
|
+
compression=None,
|
|
260
|
+
wait_for_ready=None,
|
|
261
|
+
timeout=None,
|
|
262
|
+
metadata=None):
|
|
263
|
+
return grpc.experimental.unary_unary(
|
|
264
|
+
request,
|
|
265
|
+
target,
|
|
266
|
+
'/ringo.v1.QueueService/Negotiate',
|
|
267
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NegotiateRequest.SerializeToString,
|
|
268
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NegotiateResponse.FromString,
|
|
269
|
+
options,
|
|
270
|
+
channel_credentials,
|
|
271
|
+
insecure,
|
|
272
|
+
call_credentials,
|
|
273
|
+
compression,
|
|
274
|
+
wait_for_ready,
|
|
275
|
+
timeout,
|
|
276
|
+
metadata,
|
|
277
|
+
_registered_method=True)
|
|
278
|
+
|
|
279
|
+
@staticmethod
|
|
280
|
+
def Enqueue(request,
|
|
281
|
+
target,
|
|
282
|
+
options=(),
|
|
283
|
+
channel_credentials=None,
|
|
284
|
+
call_credentials=None,
|
|
285
|
+
insecure=False,
|
|
286
|
+
compression=None,
|
|
287
|
+
wait_for_ready=None,
|
|
288
|
+
timeout=None,
|
|
289
|
+
metadata=None):
|
|
290
|
+
return grpc.experimental.unary_unary(
|
|
291
|
+
request,
|
|
292
|
+
target,
|
|
293
|
+
'/ringo.v1.QueueService/Enqueue',
|
|
294
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueRequest.SerializeToString,
|
|
295
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueResponse.FromString,
|
|
296
|
+
options,
|
|
297
|
+
channel_credentials,
|
|
298
|
+
insecure,
|
|
299
|
+
call_credentials,
|
|
300
|
+
compression,
|
|
301
|
+
wait_for_ready,
|
|
302
|
+
timeout,
|
|
303
|
+
metadata,
|
|
304
|
+
_registered_method=True)
|
|
305
|
+
|
|
306
|
+
@staticmethod
|
|
307
|
+
def EnqueueMany(request,
|
|
308
|
+
target,
|
|
309
|
+
options=(),
|
|
310
|
+
channel_credentials=None,
|
|
311
|
+
call_credentials=None,
|
|
312
|
+
insecure=False,
|
|
313
|
+
compression=None,
|
|
314
|
+
wait_for_ready=None,
|
|
315
|
+
timeout=None,
|
|
316
|
+
metadata=None):
|
|
317
|
+
return grpc.experimental.unary_unary(
|
|
318
|
+
request,
|
|
319
|
+
target,
|
|
320
|
+
'/ringo.v1.QueueService/EnqueueMany',
|
|
321
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueManyRequest.SerializeToString,
|
|
322
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.EnqueueManyResponse.FromString,
|
|
323
|
+
options,
|
|
324
|
+
channel_credentials,
|
|
325
|
+
insecure,
|
|
326
|
+
call_credentials,
|
|
327
|
+
compression,
|
|
328
|
+
wait_for_ready,
|
|
329
|
+
timeout,
|
|
330
|
+
metadata,
|
|
331
|
+
_registered_method=True)
|
|
332
|
+
|
|
333
|
+
@staticmethod
|
|
334
|
+
def GetTask(request,
|
|
335
|
+
target,
|
|
336
|
+
options=(),
|
|
337
|
+
channel_credentials=None,
|
|
338
|
+
call_credentials=None,
|
|
339
|
+
insecure=False,
|
|
340
|
+
compression=None,
|
|
341
|
+
wait_for_ready=None,
|
|
342
|
+
timeout=None,
|
|
343
|
+
metadata=None):
|
|
344
|
+
return grpc.experimental.unary_unary(
|
|
345
|
+
request,
|
|
346
|
+
target,
|
|
347
|
+
'/ringo.v1.QueueService/GetTask',
|
|
348
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.GetTaskRequest.SerializeToString,
|
|
349
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.GetTaskResponse.FromString,
|
|
350
|
+
options,
|
|
351
|
+
channel_credentials,
|
|
352
|
+
insecure,
|
|
353
|
+
call_credentials,
|
|
354
|
+
compression,
|
|
355
|
+
wait_for_ready,
|
|
356
|
+
timeout,
|
|
357
|
+
metadata,
|
|
358
|
+
_registered_method=True)
|
|
359
|
+
|
|
360
|
+
@staticmethod
|
|
361
|
+
def RetryTask(request,
|
|
362
|
+
target,
|
|
363
|
+
options=(),
|
|
364
|
+
channel_credentials=None,
|
|
365
|
+
call_credentials=None,
|
|
366
|
+
insecure=False,
|
|
367
|
+
compression=None,
|
|
368
|
+
wait_for_ready=None,
|
|
369
|
+
timeout=None,
|
|
370
|
+
metadata=None):
|
|
371
|
+
return grpc.experimental.unary_unary(
|
|
372
|
+
request,
|
|
373
|
+
target,
|
|
374
|
+
'/ringo.v1.QueueService/RetryTask',
|
|
375
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RetryTaskRequest.SerializeToString,
|
|
376
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RetryTaskResponse.FromString,
|
|
377
|
+
options,
|
|
378
|
+
channel_credentials,
|
|
379
|
+
insecure,
|
|
380
|
+
call_credentials,
|
|
381
|
+
compression,
|
|
382
|
+
wait_for_ready,
|
|
383
|
+
timeout,
|
|
384
|
+
metadata,
|
|
385
|
+
_registered_method=True)
|
|
386
|
+
|
|
387
|
+
@staticmethod
|
|
388
|
+
def Claim(request,
|
|
389
|
+
target,
|
|
390
|
+
options=(),
|
|
391
|
+
channel_credentials=None,
|
|
392
|
+
call_credentials=None,
|
|
393
|
+
insecure=False,
|
|
394
|
+
compression=None,
|
|
395
|
+
wait_for_ready=None,
|
|
396
|
+
timeout=None,
|
|
397
|
+
metadata=None):
|
|
398
|
+
return grpc.experimental.unary_unary(
|
|
399
|
+
request,
|
|
400
|
+
target,
|
|
401
|
+
'/ringo.v1.QueueService/Claim',
|
|
402
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ClaimRequest.SerializeToString,
|
|
403
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ClaimResponse.FromString,
|
|
404
|
+
options,
|
|
405
|
+
channel_credentials,
|
|
406
|
+
insecure,
|
|
407
|
+
call_credentials,
|
|
408
|
+
compression,
|
|
409
|
+
wait_for_ready,
|
|
410
|
+
timeout,
|
|
411
|
+
metadata,
|
|
412
|
+
_registered_method=True)
|
|
413
|
+
|
|
414
|
+
@staticmethod
|
|
415
|
+
def Ack(request,
|
|
416
|
+
target,
|
|
417
|
+
options=(),
|
|
418
|
+
channel_credentials=None,
|
|
419
|
+
call_credentials=None,
|
|
420
|
+
insecure=False,
|
|
421
|
+
compression=None,
|
|
422
|
+
wait_for_ready=None,
|
|
423
|
+
timeout=None,
|
|
424
|
+
metadata=None):
|
|
425
|
+
return grpc.experimental.unary_unary(
|
|
426
|
+
request,
|
|
427
|
+
target,
|
|
428
|
+
'/ringo.v1.QueueService/Ack',
|
|
429
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.AckRequest.SerializeToString,
|
|
430
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.AckResponse.FromString,
|
|
431
|
+
options,
|
|
432
|
+
channel_credentials,
|
|
433
|
+
insecure,
|
|
434
|
+
call_credentials,
|
|
435
|
+
compression,
|
|
436
|
+
wait_for_ready,
|
|
437
|
+
timeout,
|
|
438
|
+
metadata,
|
|
439
|
+
_registered_method=True)
|
|
440
|
+
|
|
441
|
+
@staticmethod
|
|
442
|
+
def Nack(request,
|
|
443
|
+
target,
|
|
444
|
+
options=(),
|
|
445
|
+
channel_credentials=None,
|
|
446
|
+
call_credentials=None,
|
|
447
|
+
insecure=False,
|
|
448
|
+
compression=None,
|
|
449
|
+
wait_for_ready=None,
|
|
450
|
+
timeout=None,
|
|
451
|
+
metadata=None):
|
|
452
|
+
return grpc.experimental.unary_unary(
|
|
453
|
+
request,
|
|
454
|
+
target,
|
|
455
|
+
'/ringo.v1.QueueService/Nack',
|
|
456
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NackRequest.SerializeToString,
|
|
457
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.NackResponse.FromString,
|
|
458
|
+
options,
|
|
459
|
+
channel_credentials,
|
|
460
|
+
insecure,
|
|
461
|
+
call_credentials,
|
|
462
|
+
compression,
|
|
463
|
+
wait_for_ready,
|
|
464
|
+
timeout,
|
|
465
|
+
metadata,
|
|
466
|
+
_registered_method=True)
|
|
467
|
+
|
|
468
|
+
@staticmethod
|
|
469
|
+
def Reject(request,
|
|
470
|
+
target,
|
|
471
|
+
options=(),
|
|
472
|
+
channel_credentials=None,
|
|
473
|
+
call_credentials=None,
|
|
474
|
+
insecure=False,
|
|
475
|
+
compression=None,
|
|
476
|
+
wait_for_ready=None,
|
|
477
|
+
timeout=None,
|
|
478
|
+
metadata=None):
|
|
479
|
+
return grpc.experimental.unary_unary(
|
|
480
|
+
request,
|
|
481
|
+
target,
|
|
482
|
+
'/ringo.v1.QueueService/Reject',
|
|
483
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RejectRequest.SerializeToString,
|
|
484
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.RejectResponse.FromString,
|
|
485
|
+
options,
|
|
486
|
+
channel_credentials,
|
|
487
|
+
insecure,
|
|
488
|
+
call_credentials,
|
|
489
|
+
compression,
|
|
490
|
+
wait_for_ready,
|
|
491
|
+
timeout,
|
|
492
|
+
metadata,
|
|
493
|
+
_registered_method=True)
|
|
494
|
+
|
|
495
|
+
@staticmethod
|
|
496
|
+
def ExtendLease(request,
|
|
497
|
+
target,
|
|
498
|
+
options=(),
|
|
499
|
+
channel_credentials=None,
|
|
500
|
+
call_credentials=None,
|
|
501
|
+
insecure=False,
|
|
502
|
+
compression=None,
|
|
503
|
+
wait_for_ready=None,
|
|
504
|
+
timeout=None,
|
|
505
|
+
metadata=None):
|
|
506
|
+
return grpc.experimental.unary_unary(
|
|
507
|
+
request,
|
|
508
|
+
target,
|
|
509
|
+
'/ringo.v1.QueueService/ExtendLease',
|
|
510
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ExtendLeaseRequest.SerializeToString,
|
|
511
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ExtendLeaseResponse.FromString,
|
|
512
|
+
options,
|
|
513
|
+
channel_credentials,
|
|
514
|
+
insecure,
|
|
515
|
+
call_credentials,
|
|
516
|
+
compression,
|
|
517
|
+
wait_for_ready,
|
|
518
|
+
timeout,
|
|
519
|
+
metadata,
|
|
520
|
+
_registered_method=True)
|
|
521
|
+
|
|
522
|
+
@staticmethod
|
|
523
|
+
def ReportProgress(request,
|
|
524
|
+
target,
|
|
525
|
+
options=(),
|
|
526
|
+
channel_credentials=None,
|
|
527
|
+
call_credentials=None,
|
|
528
|
+
insecure=False,
|
|
529
|
+
compression=None,
|
|
530
|
+
wait_for_ready=None,
|
|
531
|
+
timeout=None,
|
|
532
|
+
metadata=None):
|
|
533
|
+
return grpc.experimental.unary_unary(
|
|
534
|
+
request,
|
|
535
|
+
target,
|
|
536
|
+
'/ringo.v1.QueueService/ReportProgress',
|
|
537
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ReportProgressRequest.SerializeToString,
|
|
538
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.ReportProgressResponse.FromString,
|
|
539
|
+
options,
|
|
540
|
+
channel_credentials,
|
|
541
|
+
insecure,
|
|
542
|
+
call_credentials,
|
|
543
|
+
compression,
|
|
544
|
+
wait_for_ready,
|
|
545
|
+
timeout,
|
|
546
|
+
metadata,
|
|
547
|
+
_registered_method=True)
|
|
548
|
+
|
|
549
|
+
@staticmethod
|
|
550
|
+
def Work(request_iterator,
|
|
551
|
+
target,
|
|
552
|
+
options=(),
|
|
553
|
+
channel_credentials=None,
|
|
554
|
+
call_credentials=None,
|
|
555
|
+
insecure=False,
|
|
556
|
+
compression=None,
|
|
557
|
+
wait_for_ready=None,
|
|
558
|
+
timeout=None,
|
|
559
|
+
metadata=None):
|
|
560
|
+
return grpc.experimental.stream_stream(
|
|
561
|
+
request_iterator,
|
|
562
|
+
target,
|
|
563
|
+
'/ringo.v1.QueueService/Work',
|
|
564
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.WorkRequest.SerializeToString,
|
|
565
|
+
ringo__task__queue_dot___proto_dot_ringo_dot_v1_dot_queue__pb2.WorkResponse.FromString,
|
|
566
|
+
options,
|
|
567
|
+
channel_credentials,
|
|
568
|
+
insecure,
|
|
569
|
+
call_credentials,
|
|
570
|
+
compression,
|
|
571
|
+
wait_for_ready,
|
|
572
|
+
timeout,
|
|
573
|
+
metadata,
|
|
574
|
+
_registered_method=True)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Release-line constants shared by runtime packaging checks."""
|
|
2
|
+
|
|
3
|
+
SDK_VERSION = "0.1.0.dev0"
|
|
4
|
+
PROTOCOL_MAJOR = 1
|
|
5
|
+
PROTOCOL_MINOR = 0
|
|
6
|
+
SCHEMA_VERSION = 3
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def daemon_version_for_sdk(version: str = SDK_VERSION) -> str:
|
|
10
|
+
"""Map the Python package line to the canonical Go daemon line."""
|
|
11
|
+
if version.endswith(".dev0"):
|
|
12
|
+
return version[: -len(".dev0")] + "-dev"
|
|
13
|
+
return version
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"artifacts": [
|
|
3
|
+
{
|
|
4
|
+
"arch": "amd64",
|
|
5
|
+
"filename": "ringo-task-queue-windows-amd64.exe",
|
|
6
|
+
"os": "windows",
|
|
7
|
+
"sha256": "b798bf7c05b77ead06223392a620d8e4cdb8e9b3187ef8951e764f8431cbe4df",
|
|
8
|
+
"size": 22699520
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"buildCommit": "bench",
|
|
12
|
+
"buildDate": "2026-03-01T00:00:00Z",
|
|
13
|
+
"manifestVersion": 1,
|
|
14
|
+
"name": "ringo-task-queue",
|
|
15
|
+
"protocolMajor": 1,
|
|
16
|
+
"protocolMinor": 0,
|
|
17
|
+
"releaseManifestSha256": "a51e43f79e1a7324c77f9069b1358540a4142b6a24d88fa14a300da945183071",
|
|
18
|
+
"schemaVersion": 3,
|
|
19
|
+
"version": "0.1.0-dev"
|
|
20
|
+
}
|
|
Binary file
|