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

Add blocking runtime from upstream quickwit-oss #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

oknozor
Copy link

@oknozor oknozor commented Oct 18, 2023

This PR add the ability to select a blocking runtime via Actor::runtime_handle as implemented in https://github.com/quickwit-oss/quickwit/blob/926c0f7650b2369c44922ddb6d387aa194b42aee/quickwit/quickwit-common/src/runtimes.rs#L112

I made a little change to the original implementation to simplify feature selection (between test runtime and non test runtime).

Also I am not sure but I think this should be spawn_blocking when RuntimeType::Blocking is used.
https://github.com/guilload/witty-actors/blob/25b3df45848b2e6670a2ce874bee6c8a2a8e93ef/src/spawn_builder.rs#L167

Either I am missing something or using ``RunType::TypeBlocking` does nothing except controlling the number of worker_thread on the tokio runtime.

Can you clarify on this ?

@oknozor
Copy link
Author

oknozor commented Oct 18, 2023

Also added some github action checks (lint, fmt, test)

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.

1 participant