Hi! I would like to use Mechanize inside a worker.
Reading here http://web.archive.org/web/20140521055427/http://rubyforge.org/pipermail/mechanize-users/2009-September/000449.html It seems meachanize is not full thread safe, but using one agent per thread, should work.
Nevetherless i also found this post on Stack overflow http://stackoverflow.com/questions/37799967/sidekiq-mechanize-overwritten-instance The guy was using only instance variables but seems was failing.
Is there any recommended way to use mechanize with sidekiq workers?
Thanks,
--
You received this message because you are subscribed to the Google Groups "Sidekiq" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sidekiq+unsubscribe@googlegroups.com.
To post to this group, send email to sid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/a5cad94d-18a2-44e3-8d86-8553b0256147%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Carl, relying on a 9 yr old mailing list posting for up-to-date info is probably not a good idea. Many many Ruby gems have become thread-safe since Sidekiq rose to popularity and mainstream usage. I don’t know the answers to your questions but please let us know what you learn.Mike
On Thu, May 4, 2017 at 9:21 AM, CarlM <carlos...@gmail.com> wrote:
Hi! I would like to use Mechanize inside a worker.
Reading here http://web.archive.org/web/20140521055427/http://rubyforge.org/pipermail/mechanize-users/2009-September/000449.html It seems meachanize is not full thread safe, but using one agent per thread, should work.
Nevetherless i also found this post on Stack overflow http://stackoverflow.com/questions/37799967/sidekiq-mechanize-overwritten-instance The guy was using only instance variables but seems was failing.
Is there any recommended way to use mechanize with sidekiq workers?
Thanks,
--
You received this message because you are subscribed to the Google Groups "Sidekiq" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sidekiq+u...@googlegroups.com.
To post to this group, send email to sid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/a5cad94d-18a2-44e3-8d86-8553b0256147%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to sidekiq+unsubscribe@googlegroups.com.
To post to this group, send email to sid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/fada8f8b-ea6c-43d2-9d17-03bc009f76ce%40googlegroups.com.