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
{{ message }}
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.
I'm also seeing this problem. After setting up inline status testing in spec_helper.rb, I'm able to fetch the stubbed :complete status using Sidekiq::Status.status(job_id), but I get an empty hash when I call Sidekiq::Status.get_all(job_id).
Hi, I've come across the same problem. After inspecting sidekiq-status/testing/inline.rb the reason is very obvious:
module Sidekiq
module Status
class << self
def status(jid)
:complete
end
end
module Storage
def store_status(id, status, expiration = nil, redis_pool=nil)
'ok'
end
def store_for_id(id, status_updates, expiration = nil, redis_pool=nil)
'ok'
end
end
end
end
It's fairly simple, only stubs the result of the Redis operation write operations and a :complete result for the job. I thing this could be done by an in memory storage mechanism (instead of external as Redis). The TTL feature will be lost, but at least we will be able to test the comunication mechanism I believe.
When I use
#get_all
, I get an empty hash during my test. Am I missing something?The text was updated successfully, but these errors were encountered: