-
Notifications
You must be signed in to change notification settings - Fork 121
Status from job_id is empty #138
Comments
actually, ActiveJob has its own Job ID which means nothing to Sidekiq. As of Rails 5 you can get Sidekiq's JID by using provider_job_id. |
@youjiuzidangge Ok. But what in case of worker? I am not using Active Job. I am using workers and getting same issue. @KapustaB Did you find any solution for it? |
Same issue here. Ruby 2.6.1 Have tried as both ActiveJob implementation and just barebones Sidekiq, neither works. Have followed all of the wiki documentation. Jobs are queueing and running fine, but status is always nil. Additionally, I've enabled the Sidekiq status web view, and nothing displays when jobs are queued/running. --- Update: It appears the status worker does not honor the queue prefix, so everything is going into 'default' instead of my app prefix + '_default'. Removing my configured prefix for now and sending everything to default at least gets the web view to display statuses, however, now the status is always "queued" (even on the web page): 127.0.0.1:6379> hgetall "sidekiq:status:7a68ae1bcf949b3e96c36c12"
|
@jenjenut233 For your case, where the status remained Check if you follow the Readme require 'sidekiq'
require 'sidekiq-status'
Sidekiq.configure_client do |config|
# is this in configure_server?
Sidekiq::Status.configure_client_middleware config, expiration: 30.minutes
end
Sidekiq.configure_server do |config|
# is this in configure_server?
Sidekiq::Status.configure_server_middleware config, expiration: 30.minutes
# is this in configure_server?
Sidekiq::Status.configure_client_middleware config, expiration: 30.minutes
end |
@mayureshmayur Unfortunately no, on the end I saved sidekiq status in the database. I didn't need a high-performance solution. |
Redis is up and running. Background process is working normal. On web monitor job is visible but statuses empty.
With simple sidekiq-status functions from docs I'm geting nil, empty or false results. Problem started when I changed my workstation to new one.
Please check my SO question about empty status for Sidekiq status in Redis.
#SO detailed question
Using:
The text was updated successfully, but these errors were encountered: