Why I cannot get all the queues data, using Resque.queues
The result in json was:
{
data: [
"active_calls"
]
}
Only the name in:
class ActiveCallsJob < ActiveJob::Base
queue_as :active_calls << (this name)
end
Why I cannot get all the queues data, using Resque.queues
The result in json was:
{
data: [
"active_calls"
]
}
Only the name in:
class ActiveCallsJob < ActiveJob::Base
queue_as :active_calls << (this name)
end
Your
queue_as
line will be executed only once when the code will be parsed. But there's another solution for your issue: you can pass a block toqueue_as
. See here: http://guides.rubyonrails.org/active_job_basics.html#queues