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

Trigger postponed jobs on running_ec if that is available #9633

Conversation

KJTsanaktsidis
Copy link
Contributor

Currently, any postponed job triggered from a non-ruby thread gets sent to the main thread, but if the main thread is sleeping it won't be checking ints. Instead, we should try and interrupt running_ec if that's possible, and only fall back to the main thread if it's not.

[Bug #20197]

CC @ko1 @jhawthorn does this look OK to you? If not, I outlined a better solution in the linked issue https://bugs.ruby-lang.org/issues/20197

Currently, any postponed job triggered from a non-ruby thread gets sent
to the main thread, but if the main thread is sleeping it won't be
checking ints. Instead, we should try and interrupt running_ec if that's
possible, and only fall back to the main thread if it's not.

[Bug #20197]
@KJTsanaktsidis KJTsanaktsidis merged commit ef27685 into ruby:master Jan 25, 2024
97 checks passed
@KJTsanaktsidis KJTsanaktsidis deleted the ktsanaktsidis/postponed_job_trigger_running branch January 25, 2024 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants