Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit without dropping the tokio runtime #6035

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Exit without dropping the tokio runtime #6035

merged 1 commit into from
Mar 27, 2024

Conversation

dlon
Copy link
Member

@dlon dlon commented Mar 27, 2024

It seems like the default behavior by the runtime when dropped is to block for a long time while there are still incomplete tasks.

Close DES-719.


This change is Reviewable

@dlon dlon requested a review from hulthe March 27, 2024 13:50
@dlon dlon changed the title Ignore incomplete tasks when dropping the tokio runtime Exit without dropping the tokio runtime Mar 27, 2024
@dlon dlon force-pushed the fix-drop-tokio-runtime branch from 4f34e22 to 9004829 Compare March 27, 2024 13:51
Copy link
Contributor

@hulthe hulthe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

We just gotta make sure to avoid spawning any tasks in `run`.

Reviewed 1 of 1 files at r1.
Reviewable status: 0 of 1 files reviewed, all discussions resolved

Copy link

linear bot commented Mar 27, 2024

@dlon dlon force-pushed the fix-drop-tokio-runtime branch from 12fc354 to ed7bf4c Compare March 27, 2024 15:01
@dlon dlon marked this pull request as ready for review March 27, 2024 15:02
@dlon dlon force-pushed the fix-drop-tokio-runtime branch from ed7bf4c to a861751 Compare March 27, 2024 16:59
@dlon dlon merged commit 45b64f2 into main Mar 27, 2024
39 of 41 checks passed
@dlon dlon deleted the fix-drop-tokio-runtime branch March 27, 2024 17:01
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