Skip to content

Respond to upstream: nexus start sync failure #1026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions temporalio/api/worker/v1/message_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion temporalio/api/worker/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,23 @@ class WorkerHostInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

HOST_NAME_FIELD_NUMBER: builtins.int
PROCESS_KEY_FIELD_NUMBER: builtins.int
PROCESS_ID_FIELD_NUMBER: builtins.int
CURRENT_HOST_CPU_USAGE_FIELD_NUMBER: builtins.int
CURRENT_HOST_MEM_USAGE_FIELD_NUMBER: builtins.int
host_name: builtins.str
"""Worker host identifier."""
process_key: builtins.str
"""Worker process identifier. This id should be unique for all _processes_
running workers in the namespace, and should be shared by all workers
in the same process.
This will be used to build the worker command nexus task queue name:
"temporal-sys/worker-commands/{process_key}"
"""
process_id: builtins.str
"""Worker process identifier, should be unique for the host."""
"""Worker process identifier. Unlike process_key, this id only needs to be unique
within one host (so using e.g. a unix pid would be appropriate).
"""
current_host_cpu_usage: builtins.float
"""System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
cores on the host pegged.
Expand All @@ -151,6 +161,7 @@ class WorkerHostInfo(google.protobuf.message.Message):
self,
*,
host_name: builtins.str = ...,
process_key: builtins.str = ...,
process_id: builtins.str = ...,
current_host_cpu_usage: builtins.float = ...,
current_host_mem_usage: builtins.float = ...,
Expand All @@ -166,6 +177,8 @@ class WorkerHostInfo(google.protobuf.message.Message):
b"host_name",
"process_id",
b"process_id",
"process_key",
b"process_key",
],
) -> None: ...

Expand Down

Large diffs are not rendered by default.

24 changes: 14 additions & 10 deletions temporalio/api/workflowservice/v1/request_response_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7006,7 +7006,11 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message):
) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions:
"""Worker deployment options that user has set in the worker."""
@property
def worker_heartbeat(self) -> temporalio.api.worker.v1.message_pb2.WorkerHeartbeat:
def worker_heartbeat(
self,
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
temporalio.api.worker.v1.message_pb2.WorkerHeartbeat
]:
"""Worker info to be sent to the server."""
def __init__(
self,
Expand All @@ -7018,7 +7022,9 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message):
| None = ...,
deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions
| None = ...,
worker_heartbeat: temporalio.api.worker.v1.message_pb2.WorkerHeartbeat
worker_heartbeat: collections.abc.Iterable[
temporalio.api.worker.v1.message_pb2.WorkerHeartbeat
]
| None = ...,
) -> None: ...
def HasField(
Expand All @@ -7028,8 +7034,6 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message):
b"deployment_options",
"task_queue",
b"task_queue",
"worker_heartbeat",
b"worker_heartbeat",
"worker_version_capabilities",
b"worker_version_capabilities",
],
Expand Down Expand Up @@ -9363,19 +9367,19 @@ class RecordWorkerHeartbeatRequest(google.protobuf.message.Message):
@property
def worker_heartbeat(
self,
) -> temporalio.api.worker.v1.message_pb2.WorkerHeartbeat: ...
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
temporalio.api.worker.v1.message_pb2.WorkerHeartbeat
]: ...
def __init__(
self,
*,
namespace: builtins.str = ...,
identity: builtins.str = ...,
worker_heartbeat: temporalio.api.worker.v1.message_pb2.WorkerHeartbeat
worker_heartbeat: collections.abc.Iterable[
temporalio.api.worker.v1.message_pb2.WorkerHeartbeat
]
| None = ...,
) -> None: ...
def HasField(
self,
field_name: typing_extensions.Literal["worker_heartbeat", b"worker_heartbeat"],
) -> builtins.bool: ...
def ClearField(
self,
field_name: typing_extensions.Literal[
Expand Down
11 changes: 11 additions & 0 deletions temporalio/bridge/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading