Skip to content

Commit 5050a1a

Browse files
committed
Clean up
1 parent 51a6dec commit 5050a1a

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

temporalio/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5985,7 +5985,6 @@ async def start_workflow_update(
59855985
client=self._client,
59865986
id=req.request.meta.update_id,
59875987
workflow_id=workflow_id,
5988-
# TODO: Why don't we use the run ID from the update response here?
59895988
workflow_run_id=input.run_id,
59905989
result_type=input.ret_type,
59915990
)

tests/worker/test_update_with_start.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -415,34 +415,6 @@ def make_start_op(workflow_id: str):
415415
await aw
416416

417417

418-
async def test_workflow_update_poll_loop(client: Client):
419-
# TODO: mock server to test retry loop
420-
pytest.skip(
421-
"It's too slow to actually do this in the test suite: retries occur every 20s"
422-
)
423-
start_op = WithStartWorkflowOperation(
424-
NeverExecutedWorkflow.run,
425-
id=f"wf-{uuid.uuid4()}",
426-
task_queue="does-not-exist",
427-
id_conflict_policy=WorkflowIDConflictPolicy.FAIL,
428-
)
429-
with patch.object(
430-
client.workflow_service,
431-
"execute_multi_operation",
432-
wraps=client.workflow_service.execute_multi_operation,
433-
) as workflow_service_method:
434-
try:
435-
await client.execute_update_with_start_workflow(
436-
NeverExecutedWorkflow.do_update,
437-
start_workflow_operation=start_op,
438-
)
439-
except:
440-
print(
441-
f"execute_multi_operation was called {workflow_service_method.call_count} times"
442-
)
443-
raise
444-
445-
446418
class SimpleClientInterceptor(Interceptor):
447419
def intercept_client(self, next: OutboundInterceptor) -> OutboundInterceptor:
448420
return SimpleClientOutboundInterceptor(super().intercept_client(next))

0 commit comments

Comments
 (0)