Add timeout and retry_interval to GetRunner
This commit is contained in:
@@ -13,7 +13,7 @@ _sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10get_runner.proto\x12\x06\x61pi.v2\"(\n\x10GetRunnerOptions\x12\x14\n\x0c\x63lone_source\x18\x02 \x01(\x08\"K\n\x10GetRunnerRequest\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12)\n\x07options\x18\x02 \x01(\x0b\x32\x18.api.v2.GetRunnerOptions\"\x1f\n\x11GetRunnerResponse\x12\n\n\x02id\x18\x01 \x01(\t2V\n\x10GetRunnerService\x12\x42\n\tGetRunner\x12\x18.api.v2.GetRunnerRequest\x1a\x19.api.v2.GetRunnerResponse\"\x00\x42\x35Z3git.ohea.xyz/cursorius/pipeline-api/go/api/v2;apiv2b\x06proto3')
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10get_runner.proto\x12\x06\x61pi.v2\"Q\n\x10GetRunnerOptions\x12\x14\n\x0c\x63lone_source\x18\x02 \x01(\x08\x12\x0f\n\x07timeout\x18\x03 \x01(\x03\x12\x16\n\x0eretry_interval\x18\x04 \x01(\x03\"K\n\x10GetRunnerRequest\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12)\n\x07options\x18\x02 \x01(\x0b\x32\x18.api.v2.GetRunnerOptions\"\x1f\n\x11GetRunnerResponse\x12\n\n\x02id\x18\x01 \x01(\t2V\n\x10GetRunnerService\x12\x42\n\tGetRunner\x12\x18.api.v2.GetRunnerRequest\x1a\x19.api.v2.GetRunnerResponse\"\x00\x42\x35Z3git.ohea.xyz/cursorius/pipeline-api/go/api/v2;apiv2b\x06proto3')
|
||||
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'get_runner_pb2', globals())
|
||||
@@ -22,11 +22,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'Z3git.ohea.xyz/cursorius/pipeline-api/go/api/v2;apiv2'
|
||||
_GETRUNNEROPTIONS._serialized_start=28
|
||||
_GETRUNNEROPTIONS._serialized_end=68
|
||||
_GETRUNNERREQUEST._serialized_start=70
|
||||
_GETRUNNERREQUEST._serialized_end=145
|
||||
_GETRUNNERRESPONSE._serialized_start=147
|
||||
_GETRUNNERRESPONSE._serialized_end=178
|
||||
_GETRUNNERSERVICE._serialized_start=180
|
||||
_GETRUNNERSERVICE._serialized_end=266
|
||||
_GETRUNNEROPTIONS._serialized_end=109
|
||||
_GETRUNNERREQUEST._serialized_start=111
|
||||
_GETRUNNERREQUEST._serialized_end=186
|
||||
_GETRUNNERRESPONSE._serialized_start=188
|
||||
_GETRUNNERRESPONSE._serialized_end=219
|
||||
_GETRUNNERSERVICE._serialized_start=221
|
||||
_GETRUNNERSERVICE._serialized_end=307
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
|
||||
@@ -6,10 +6,14 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class GetRunnerOptions(_message.Message):
|
||||
__slots__ = ["clone_source"]
|
||||
__slots__ = ["clone_source", "retry_interval", "timeout"]
|
||||
CLONE_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
||||
RETRY_INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
||||
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
||||
clone_source: bool
|
||||
def __init__(self, clone_source: bool = ...) -> None: ...
|
||||
retry_interval: int
|
||||
timeout: int
|
||||
def __init__(self, clone_source: bool = ..., timeout: _Optional[int] = ..., retry_interval: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class GetRunnerRequest(_message.Message):
|
||||
__slots__ = ["options", "tags"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "cursorius-pipeline-api-v2"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
description = "Python client for the cursorius pipeline api (v2)"
|
||||
authors = ["restitux <restitux@ohea.xyz>"]
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
Reference in New Issue
Block a user