File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments