ruby-on-railsruby-on-rails-4sidekiqgriddler

Rails + Griddler + Sidekiq as processor


Is that possible to use Sidekiq to perform as Griddler Processor ? Currently Griddler return a Griddler Object that I can't send to Sidekiq, and I need it to upload attachments to S3 Bucket.

Do you have any way to use Griddler with Sidekiq ?

Thanks


Solution

  • You can convert the griddler object to a hash and send that to Sidekiq. Make sure Sidekiq and Rails are running on the same machine so Sidekiq can access the attachment path on the filesystem.