File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/async_jobs Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ async def submit(
127127
128128
129129_DEFAULT_RPC_RETRY_POLICY : dict [str , Any ] = {
130- "retry" : retry_if_exception_type (RemoteMethodNotRegisteredError ),
130+ "retry" : retry_if_exception_type (( RemoteMethodNotRegisteredError ,) ),
131131 "wait" : wait_random_exponential (max = 20 ),
132132 "stop" : stop_after_delay (60 ),
133133 "reraise" : True ,
@@ -196,6 +196,8 @@ async def wait_and_get_result(
196196 job_id_data : AsyncJobNameData ,
197197 client_timeout : datetime .timedelta ,
198198) -> AsyncGenerator [AsyncJobComposedResult , None ]:
199+ """when a job is already submitted this will wait for its completion
200+ and return the composed result"""
199201 try :
200202 job_status = None
201203 async for job_status in _wait_for_completion (
@@ -229,7 +231,7 @@ async def wait_and_get_result(
229231 job_id_data = job_id_data ,
230232 )
231233 except Exception as exc :
232- raise exc from error
234+ raise exc from error # NOSONAR
233235 raise
234236
235237
You can’t perform that action at this time.
0 commit comments