Skip to content

Send begin progress message synchronously#3110

Merged
wz1000 merged 2 commits into
masterfrom
sync-begin-progress
Aug 18, 2022
Merged

Send begin progress message synchronously#3110
wz1000 merged 2 commits into
masterfrom
sync-begin-progress

Conversation

@pepeiborra

@pepeiborra pepeiborra commented Aug 17, 2022

Copy link
Copy Markdown
Collaborator

Currently the Begin progress message is sent asynchronously, so it can
happen that it's never sent if the async is cancelled immediately
because a new kick has started. This causes trouble in tests and
benchmarks which make assumptions about progress updates.

To address this, we send the Begin progress message synchronously,
and only then do the rest of the progress reporting stuff
(including waiting for the response) asynchronously

Currently the Begin progress message is sent asynchronously, so it can
happen that it's never sent if the async is cancelled immediately
because a new kick has started. This causes trouble in tests and
benchmarks which make assumptions about progress updates.

To address this, we send the Begin progress message synchronously,
and only then do the rest of the progress reporting stuff
(including waiting for the response) asynchronously
@pepeiborra
pepeiborra requested a review from wz1000 August 17, 2022 16:42
@pepeiborra
pepeiborra marked this pull request as ready for review August 17, 2022 21:27
@wz1000
wz1000 enabled auto-merge (rebase) August 18, 2022 08:31
@wz1000
wz1000 merged commit f4ce73f into master Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants