File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -211,8 +211,12 @@ async def run(
211
211
print (f"🌈 { 'cancel returned' :<24} : { cancel_ret } " )
212
212
213
213
print (f"🌈 { 'before await op_handle' :<24} : { op_handle } " )
214
- output = await op_handle
215
- print (f"🌈 { 'after await op_handle' :<24} : { op_handle } " )
214
+ try :
215
+ output = await op_handle
216
+ except Exception as e :
217
+ print (f"🌈 { 'await op_handle failed' :<24} : { e .__class__ } ({ e } )" )
218
+ raise
219
+ print (f"🌈 { 'after await op_handle' :<24} : { op_handle } -> { output } " )
216
220
return output
217
221
218
222
@workflow .update
@@ -274,6 +278,9 @@ async def test_async_response(
274
278
request_cancel : bool ,
275
279
use_shorthand_defined_operation : bool ,
276
280
):
281
+ print (
282
+ f"🌈 { 'test_async_response' :<24} : { request_cancel = } { use_shorthand_defined_operation = } "
283
+ )
277
284
task_queue = str (uuid .uuid4 ())
278
285
async with Worker (
279
286
client ,
@@ -283,7 +290,7 @@ async def test_async_response(
283
290
workflow_runner = UnsandboxedWorkflowRunner (),
284
291
):
285
292
await create_nexus_endpoint (task_queue , client )
286
- operation_workflow_id = str ( uuid . uuid4 ())
293
+ operation_workflow_id = "default-workflow-id"
287
294
288
295
# Start the caller workflow.
289
296
block_forever_waiting_for_cancellation = request_cancel
You can’t perform that action at this time.
0 commit comments