Skip to content

Commit d43f29a

Browse files
committed
Delete print statements
1 parent 7e8da41 commit d43f29a

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

β€Žtests/worker/test_nexus.py

+3-14
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,11 @@ async def run(
205205
request_cancel: bool,
206206
task_queue: str,
207207
) -> MyOutput:
208-
operation = self._get_operation(input)
209208
op_handle = await self.nexus_service.start_operation(
210-
operation,
209+
self._get_operation(input),
211210
input,
212211
headers=input.start_options.headers,
213212
)
214-
print(f"🌈 {'after await start':<24}: {op_handle}")
215213
self._nexus_operation_started = True
216214
if isinstance(input.response_type, SyncResponse):
217215
assert op_handle.operation_token is None
@@ -221,18 +219,9 @@ async def run(
221219
if request_cancel:
222220
# Even for SyncResponse, the op_handle future is not done at this point; that
223221
# transition doesn't happen until the handle is awaited.
224-
print(f"🌈 {'before op_handle.cancel':<24}: {op_handle}")
225-
cancel_ret = op_handle.cancel()
226-
print(f"🌈 {'cancel returned':<24}: {cancel_ret}")
222+
assert op_handle.cancel()
227223

228-
print(f"🌈 {'before await op_handle':<24}: {op_handle}")
229-
try:
230-
output = await op_handle
231-
except Exception as e:
232-
print(f"🌈 {'await op_handle failed':<24}: {e.__class__}({e})")
233-
raise
234-
print(f"🌈 {'after await op_handle':<24}: {op_handle} -> {output}")
235-
return output
224+
return await op_handle
236225

237226
@workflow.update
238227
async def wait_nexus_operation_started(self) -> None:

0 commit comments

Comments
Β (0)