sidekiq-status | an extension to the sidekiq message processing to track | Job Scheduling library
kandi X-RAY | sidekiq-status Summary
kandi X-RAY | sidekiq-status Summary
an extension to the sidekiq message processing to track your jobs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize a new instance
- Returns the status of the queue .
- Retrieve the number of retries of retry .
- returns the retry if it fails
- Determine if the version of retry .
sidekiq-status Key Features
sidekiq-status Examples and Code Snippets
Community Discussions
Trending Discussions on sidekiq-status
QUESTION
I'm using sidekiq
and sidekiq-status
gems for workers and tracking progress of them on web UI: /sidekiq/statuses
.
For individual worker tracking /sidekiq/statuses/job_id
.
How can I access progress info from a frontend via API?
On GET /sidekiq/stats
I get reponse:
ANSWER
Answered 2018-Apr-13 at 15:04Looking at the Sidekiq::Web source the only endpoints I see returning JSON are /sidekiq/stats
and /sidekiq/stats/queues
.
Remember, Sidekiq has many API helpers for use in your Ruby code. There's no reason you can't just create your own controller to pass job info to the frontend using the Ruby API. E.g. Sidekiq::Queue.new("high-queue").find_job(jid)
This also has the advantage of letting you set up more fine-grained user access control over the data rather than letting any user of your frontend have access to the Sidekiq API.
If you plan on making heavy use of this, you might think about upgrading to Pro which includes a Pro API with a more efficient Sidekiq::JobSet#find_job(jid)
method.
Finally, if there's no API helper in Sidekiq remember that Sidekiq is all just Redis in the backend and you could write your own Redis queries to fetch the right data in the shape you want.
QUESTION
Few tests are failing in pipeline with error Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)
.
My .gitlab-ci.yml
file
ANSWER
Answered 2018-Sep-13 at 12:32There's no one single localhost in Docker which is used by Gitlab CI. The convention is that the service name declared below will be available for other containers in the docker network by it's name - redis
in that case:
QUESTION
I have a contact form that send a email with the fields to a admin email. I'm using Sidekiq and Redis. When I send the form, the task stay lock up in sidekiq schedule task and is never sent.
Has anyone ever experienced this? I've already tried many things to try fix this, but without success. I configured something wrong?
...ANSWER
Answered 2018-Aug-09 at 18:07The problem is with your namespace. Don't use namespaces, as I wrote in my blog last year.
The redis-namespace gem allows you to share a Redis database among several applications by prefixing every key with a namespace but it's a terrible hack that no one should use. Redis already has a native solution if you want to share a Redis instance: databases. The default database is 0. Here's how to point Sidekiq to use database 1 instead:
https://www.mikeperham.com/2017/04/10/migrating-from-redis-namespace/
QUESTION
I'm getting following warning at my console:
Passing 'connection' command to redis as is; blind passthrough has been deprecated and will be removed in redis-namespace 2.0 (at /home/tecorb/.rvm/gems/ruby-2.4.1@mproj/gems/sidekiq-5.1.3/lib/sidekiq/web/helpers.rb:152:in `block in redis_connection')
I'm using following gems in my Gemfile:
...ANSWER
Answered 2018-Apr-10 at 17:57It's a bug in redis-namespace. Don't use namespaces.
QUESTION
I'm trying to understand the Redis & Sidekiq configuration in a Passenger+Rails app and have run into some lack of understanding. I start the redis server independently of my rails app, while Sidekiq is a gem in my Rails app. I start it likewise: (no sidekiq.yml file needed for me)
bundle exec sidekiq
Following is my sidekiq.rb initializer:
...ANSWER
Answered 2017-Feb-07 at 07:12From sidekiq docs:
By default, Sidekiq tries to connect to Redis at localhost:6379
https://github.com/mperham/sidekiq/wiki/Using-Redis
You can change the port in the initializer:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sidekiq-status
Configure the middleware
(Optionally) add the web interface
(Optionally) enable support for ActiveJob
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page