You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is pretty safe for most things, but it would be more ideal and efficient in some ways to have the worker pull out the object again and then invoke.
classMethodInvokerTaskWorker < Sidekiq::ActiveRecord::TaskWorkersidekiq_task_model:user# or Userdefperform_on_model(options)user.my_method(options[:a],options[:b])endend
My most common use of sidekiq is
This is pretty safe for most things, but it would be more ideal and efficient in some ways to have the worker pull out the object again and then invoke.
So, one could make some sort of generic worker for this
(I haven't tried that, I may have gotten something slightly off)
Would be nice to have some syntactic sugar for that, so instead of instantiating a worker in one's code all the time, one could just do:
Thoughts?
The text was updated successfully, but these errors were encountered: