Skip to content

Commit 7712bb8

Browse files
committed
Set Input.dispatch_id
1 parent 93439d8 commit 7712bb8

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

src/dispatch/proto.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class Input:
5151
"""
5252

5353
__slots__ = (
54+
"dispatch_id",
5455
"_has_input",
5556
"_input",
5657
"_coroutine_state",
@@ -59,6 +60,8 @@ class Input:
5960
)
6061

6162
def __init__(self, req: function_pb.RunRequest):
63+
self.dispatch_id = req.dispatch_id
64+
6265
self._has_input = req.HasField("input")
6366
if self._has_input:
6467
if req.input.Is(google.protobuf.wrappers_pb2.BytesValue.DESCRIPTOR):

src/dispatch/sdk/v1/dispatch_pb2.py

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dispatch/sdk/v1/function_pb2.py

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dispatch/sdk/v1/function_pb2.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ from dispatch.sdk.v1 import status_pb2 as _status_pb2
1414
DESCRIPTOR: _descriptor.FileDescriptor
1515

1616
class RunRequest(_message.Message):
17-
__slots__ = ("function", "input", "poll_result")
17+
__slots__ = ("function", "input", "poll_result", "dispatch_id")
1818
FUNCTION_FIELD_NUMBER: _ClassVar[int]
1919
INPUT_FIELD_NUMBER: _ClassVar[int]
2020
POLL_RESULT_FIELD_NUMBER: _ClassVar[int]
21+
DISPATCH_ID_FIELD_NUMBER: _ClassVar[int]
2122
function: str
2223
input: _any_pb2.Any
2324
poll_result: _poll_pb2.PollResult
25+
dispatch_id: str
2426
def __init__(
2527
self,
2628
function: _Optional[str] = ...,
2729
input: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...,
2830
poll_result: _Optional[_Union[_poll_pb2.PollResult, _Mapping]] = ...,
31+
dispatch_id: _Optional[str] = ...,
2932
) -> None: ...
3033

3134
class RunResponse(_message.Message):

0 commit comments

Comments
 (0)