Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Pass Array as an argument to Resque.enqueue

$
0
0

I would like to pass an array to Resque.enqueue

transactions = [        { label: :subscription, transaction_id: 411},        { label: :domain, transaction_id: 150},        { label: :email, transaction_id: 151},        { label: :domain, transaction_id: 412},      ]Resque.enqueue(        NotifierJob, :success, sub_transaction_id, transfer.id, transactions      )

Unfortunately I see transactions as an empty object. When I will call

::NotifierJob.perform(:success,  sub_transaction_id, transfer.id, transactions)

It works great. Why transactions variable is empty by calling Resque.enqueue?


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>