Skip to content

Commit e4bbd54

Browse files
committed
Update core/protos again to get priorities on tasks
1 parent 11f83e5 commit e4bbd54

File tree

5 files changed

+75
-57
lines changed

5 files changed

+75
-57
lines changed

temporalio/bridge/proto/activity_task/activity_task_pb2.py

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

temporalio/bridge/proto/activity_task/activity_task_pb2.pyi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class Start(google.protobuf.message.Message):
149149
START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
150150
HEARTBEAT_TIMEOUT_FIELD_NUMBER: builtins.int
151151
RETRY_POLICY_FIELD_NUMBER: builtins.int
152+
PRIORITY_FIELD_NUMBER: builtins.int
152153
IS_LOCAL_FIELD_NUMBER: builtins.int
153154
workflow_namespace: builtins.str
154155
"""The namespace the workflow lives in"""
@@ -208,6 +209,9 @@ class Start(google.protobuf.message.Message):
208209
(or not) during activity scheduling as the service can override the provided one in case its
209210
values are not specified or exceed configured system limits.
210211
"""
212+
@property
213+
def priority(self) -> temporalio.api.common.v1.message_pb2.Priority:
214+
"""Priority of this activity. Local activities will always have this field set to the default."""
211215
is_local: builtins.bool
212216
"""Set to true if this is a local activity. Note that heartbeating does not apply to local
213217
activities.
@@ -240,6 +244,7 @@ class Start(google.protobuf.message.Message):
240244
start_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
241245
heartbeat_timeout: google.protobuf.duration_pb2.Duration | None = ...,
242246
retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ...,
247+
priority: temporalio.api.common.v1.message_pb2.Priority | None = ...,
243248
is_local: builtins.bool = ...,
244249
) -> None: ...
245250
def HasField(
@@ -249,6 +254,8 @@ class Start(google.protobuf.message.Message):
249254
b"current_attempt_scheduled_time",
250255
"heartbeat_timeout",
251256
b"heartbeat_timeout",
257+
"priority",
258+
b"priority",
252259
"retry_policy",
253260
b"retry_policy",
254261
"schedule_to_close_timeout",
@@ -284,6 +291,8 @@ class Start(google.protobuf.message.Message):
284291
b"input",
285292
"is_local",
286293
b"is_local",
294+
"priority",
295+
b"priority",
287296
"retry_policy",
288297
b"retry_policy",
289298
"schedule_to_close_timeout",

0 commit comments

Comments
 (0)