File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,11 @@ class ActionListenerImpl(WorkerActionListener):
127
127
128
128
def __init__ (
129
129
self ,
130
- client : DispatcherStub ,
131
- aio_client : DispatcherStub ,
132
130
config : ClientConfig ,
133
131
worker_id ,
134
132
):
135
- self .aio_client = aio_client
136
- self .client = client
137
133
self .config = config
134
+ self .aio_client = DispatcherStub (new_conn (config , True ))
138
135
self .token = config .token
139
136
self .worker_id = worker_id
140
137
self .retries = 0
@@ -309,6 +306,8 @@ async def get_listen_client(self):
309
306
f"Could not connect to Hatchet, retrying... { self .retries } /{ DEFAULT_ACTION_LISTENER_RETRY_COUNT } "
310
307
)
311
308
309
+ self .aio_client = DispatcherStub (new_conn (self .config , True ))
310
+
312
311
if self .listen_strategy == "v2" :
313
312
listener = self .aio_client .ListenV2 (
314
313
WorkerListenRequest (workerId = self .worker_id ),
@@ -374,7 +373,7 @@ async def get_action_listener(
374
373
)
375
374
376
375
return ActionListenerImpl (
377
- self .client , self . aio_client , self . config , response .workerId
376
+ self .config , response .workerId
378
377
)
379
378
380
379
async def send_step_action_event (self , in_ : StepActionEvent ):
You can’t perform that action at this time.
0 commit comments