|
19 | 19 | ) |
20 | 20 |
|
21 | 21 | import google.protobuf.internal.containers |
22 | | -import temporal_sdk_bridge |
23 | | -from temporal_sdk_bridge import ( |
24 | | - CustomSlotSupplier as BridgeCustomSlotSupplier, |
25 | | -) |
26 | | -from temporal_sdk_bridge import PollShutdownError |
27 | 22 | from typing_extensions import TypeAlias |
28 | 23 |
|
29 | 24 | import temporalio.api.common.v1 |
|
34 | 29 | import temporalio.bridge.proto.workflow_activation |
35 | 30 | import temporalio.bridge.proto.workflow_completion |
36 | 31 | import temporalio.bridge.runtime |
| 32 | +import temporalio.bridge.temporal_sdk_bridge |
37 | 33 | import temporalio.converter |
38 | 34 | import temporalio.exceptions |
| 35 | +from temporalio.bridge.temporal_sdk_bridge import ( |
| 36 | + CustomSlotSupplier as BridgeCustomSlotSupplier, |
| 37 | +) |
| 38 | +from temporalio.bridge.temporal_sdk_bridge import PollShutdownError |
39 | 39 |
|
40 | 40 |
|
41 | 41 | @dataclass |
@@ -111,22 +111,26 @@ class Worker: |
111 | 111 | def create(client: temporalio.bridge.client.Client, config: WorkerConfig) -> Worker: |
112 | 112 | """Create a bridge worker from a bridge client.""" |
113 | 113 | return Worker( |
114 | | - temporal_sdk_bridge.new_worker(client._runtime._ref, client._ref, config) |
| 114 | + temporalio.bridge.temporal_sdk_bridge.new_worker( |
| 115 | + client._runtime._ref, client._ref, config |
| 116 | + ) |
115 | 117 | ) |
116 | 118 |
|
117 | 119 | @staticmethod |
118 | 120 | def for_replay( |
119 | 121 | runtime: temporalio.bridge.runtime.Runtime, |
120 | 122 | config: WorkerConfig, |
121 | | - ) -> Tuple[Worker, temporal_sdk_bridge.HistoryPusher]: |
| 123 | + ) -> Tuple[Worker, temporalio.bridge.temporal_sdk_bridge.HistoryPusher]: |
122 | 124 | """Create a bridge replay worker.""" |
123 | 125 | [ |
124 | 126 | replay_worker, |
125 | 127 | pusher, |
126 | | - ] = temporal_sdk_bridge.new_replay_worker(runtime._ref, config) |
| 128 | + ] = temporalio.bridge.temporal_sdk_bridge.new_replay_worker( |
| 129 | + runtime._ref, config |
| 130 | + ) |
127 | 131 | return Worker(replay_worker), pusher |
128 | 132 |
|
129 | | - def __init__(self, ref: temporal_sdk_bridge.WorkerRef) -> None: |
| 133 | + def __init__(self, ref: temporalio.bridge.temporal_sdk_bridge.WorkerRef) -> None: |
130 | 134 | """Create SDK core worker from a bridge worker.""" |
131 | 135 | self._ref = ref |
132 | 136 |
|
|
0 commit comments