Skip to content

Commit e83a260

Browse files
committed
Remove exposure of skip_client_worker_set_check
1 parent 18873a5 commit e83a260

File tree

5 files changed

+0
-23
lines changed

5 files changed

+0
-23
lines changed

temporalio/bridge/src/worker.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ pub struct WorkerConfig {
6565
nondeterminism_as_workflow_fail_for_types: HashSet<String>,
6666
nexus_task_poller_behavior: PollerBehavior,
6767
plugins: Vec<String>,
68-
skip_client_worker_set_check: bool,
6968
}
7069

7170
#[derive(FromPyObject)]
@@ -735,7 +734,6 @@ fn convert_worker_config(
735734
})
736735
.collect::<Vec<_>>(),
737736
)
738-
.skip_client_worker_set_check(conf.skip_client_worker_set_check)
739737
.build()
740738
.map_err(|err| PyValueError::new_err(format!("Invalid worker config: {err}")))
741739
}

temporalio/bridge/worker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class WorkerConfig:
6565
nondeterminism_as_workflow_fail_for_types: Set[str]
6666
nexus_task_poller_behavior: PollerBehavior
6767
plugins: Sequence[str]
68-
skip_client_worker_set_check: bool
6968

7069

7170
@dataclass

temporalio/worker/_replayer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ def on_eviction_hook(
294294
1
295295
),
296296
plugins=[plugin.name() for plugin in self.plugins],
297-
skip_client_worker_set_check=True,
298297
),
299298
)
300299
# Start worker

temporalio/worker/_worker.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def __init__(
148148
nexus_task_poller_behavior: PollerBehavior = PollerBehaviorSimpleMaximum(
149149
maximum=5
150150
),
151-
skip_client_worker_set_check: bool = False,
152151
) -> None:
153152
"""Create a worker to process workflows and/or activities.
154153
@@ -323,9 +322,6 @@ def __init__(
323322
Defaults to a 5-poller maximum.
324323
nexus_task_poller_behavior: Specify the behavior of Nexus task polling.
325324
Defaults to a 5-poller maximum.
326-
skip_client_worker_set_check: Skip the runtime validation that ensures
327-
the client is registered with the worker set. This should only be
328-
used in tests.
329325
"""
330326
config = WorkerConfig(
331327
client=client,
@@ -368,7 +364,6 @@ def __init__(
368364
workflow_task_poller_behavior=workflow_task_poller_behavior,
369365
activity_task_poller_behavior=activity_task_poller_behavior,
370366
nexus_task_poller_behavior=nexus_task_poller_behavior,
371-
skip_client_worker_set_check=skip_client_worker_set_check,
372367
)
373368

374369
plugins_from_client = cast(
@@ -620,7 +615,6 @@ def check_activity(activity):
620615
"nexus_task_poller_behavior"
621616
]._to_bridge(),
622617
plugins=plugins,
623-
skip_client_worker_set_check=config["skip_client_worker_set_check"],
624618
),
625619
)
626620

@@ -915,7 +909,6 @@ class WorkerConfig(TypedDict, total=False):
915909
activity_task_poller_behavior: PollerBehavior
916910
nexus_task_poller_behavior: PollerBehavior
917911
plugins: Sequence[Plugin]
918-
skip_client_worker_set_check: bool
919912

920913

921914
def _warn_if_activity_executor_max_workers_is_inconsistent(

tests/conftest.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,6 @@ def pytest_addoption(parser):
5959
)
6060

6161

62-
@pytest.fixture(autouse=True)
63-
def _skip_client_worker_set_check(monkeypatch):
64-
original_init = temporalio.worker.Worker.__init__
65-
66-
def patched_init(self, *args, **kwargs):
67-
kwargs.setdefault("skip_client_worker_set_check", True)
68-
return original_init(self, *args, **kwargs)
69-
70-
monkeypatch.setattr(temporalio.worker.Worker, "__init__", patched_init)
71-
yield
72-
73-
7462
@pytest.fixture(scope="session")
7563
def event_loop():
7664
loop = asyncio.get_event_loop_policy().new_event_loop()

0 commit comments

Comments
 (0)