Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion coriolis/conductor/rpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ def add_task_progress_update(
def update_task_progress_update(
self, ctxt, task_id, progress_update_index, new_current_step,
new_total_steps=None, new_message=None):
self._cast(
# Must use synchronous RPC: EventManager advances last_perc only after
# this returns; fire-and-forget can lose the final update while state
# has already moved on, preventing any retry.
return self._call(
ctxt, 'update_task_progress_update', task_id=task_id,
progress_update_index=progress_update_index,
new_current_step=new_current_step,
Expand Down
3 changes: 1 addition & 2 deletions coriolis/tests/conductor/rpc/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ def test_update_task_progress_update(self):
"new_total_steps": None,
"new_message": None
}
self._test(self.client.update_task_progress_update, args,
rpc_op='_cast')
self._test(self.client.update_task_progress_update, args)

def test_create_transfer_schedule(self):
args = {
Expand Down
Loading