Skip to content

Commit 9238e7d

Browse files
committed
Fix merge problem
1 parent 8795d80 commit 9238e7d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

temporalio/worker/_worker.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,12 @@ def __init__(
446446
config = root_plugin.configure_worker(config)
447447
self._plugin = root_plugin
448448

449-
self._init_from_config(config)
449+
self._init_from_config(client, config)
450450

451-
def _init_from_config(self, config: WorkerConfig):
452-
"""Handles post plugin initialization to ensure original arguments are not used"""
451+
def _init_from_config(self, client: temporalio.client.Client, config: WorkerConfig):
452+
"""Handles post plugin initialization to ensure original arguments are not used.
453+
Client is safe to take separately since it can't be modified by worker plugins.
454+
"""
453455
self._config = config
454456

455457
# TODO(nexus-preview): max_concurrent_nexus_tasks / tuner support

0 commit comments

Comments
 (0)