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

Improve thread scheduling #487

Closed
wants to merge 4 commits into from

Conversation

sebyx07
Copy link
Contributor

@sebyx07 sebyx07 commented Aug 27, 2024

use Thread.pass where ever possible, because ferrum scrapers usually are put in sidekiq workers and it's better to yield to other threads that actually do work instead of waiting
sidekiq/sidekiq#5039

and wait_for_idle(..duration:) the duration param is not really set by someone duration:, only the timeout value is usually set

@sebyx07
Copy link
Contributor Author

sebyx07 commented Aug 27, 2024

the specs fail locally on master. idk if u can check them out?

@sebyx07
Copy link
Contributor Author

sebyx07 commented Aug 27, 2024

#488

@sebyx07 sebyx07 closed this Aug 28, 2024
@route
Copy link
Member

route commented Aug 29, 2024

I'd say maybe, but in general it's bad idea to run crawlers in sidekiq

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