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

feat: impl reqactor #448

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

keroro520
Copy link
Contributor

No description provided.

@keroro520 keroro520 requested a review from smtmfft January 13, 2025 06:44
Copy link
Contributor

@smtmfft smtmfft left a comment

Choose a reason for hiding this comment

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

LGTM!
1 thing to clarify that you actually limit the concurreny by that 1024 channel? in burst there will be a problem cause networking I/O stuck, as potentially there are 1024 tasks asking for huge data transfer. That's why we used to have a self-impled software pending list, you can take this into consideration when you do next step.

request_key: RequestKey,
old_status: StatusWithContext,
) -> Result<StatusWithContext, String> {
debug_assert!(
Copy link
Contributor

Choose a reason for hiding this comment

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

it still has some chance that we cancel a complete statue task.
so maybe a if-trace better than debug_asset.

// Ensure signal the request key to the internal channel.
//
// Note that this function will retry sending the signal until success.
async fn ensure_internal_signal(&mut self, request_key: RequestKey) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this ensure_signal has expected status/response?

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