Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [sidekiq]

Sidekiq is a background processing framework for Ruby.

sidekiq
1 vote
0 answers
41 views
+50

Turbo-Stream broadcast and Sidekiq job - Job runs, but page does not update

Trying to run a sidekiq job then broadcast the updated attributes to the page assuming the user is sitting there watching it. I'll try and list all relevant code: cable.yml development: adapter: ...
Ricky Mason's user avatar
  • 1,820
0 votes
1 answer
23 views

Handling sidekiq service refresh

I am using this linux unit file for our sidekiq service: [Unit] Description=sidekiq low After=syslog.target network.target [Service] Type=simple WorkingDirectory=/var/www/backend/current Environment=&...
simo's user avatar
  • 24.2k
0 votes
1 answer
37 views

Why can't I wrap Sidekiq.configure_server in Rails after_initialize?

After upgrade to Rails 6 the initializers/sidekiq.rb is causing deprecation warnings about class autoloading. As a workaround I thought I could wrap the contents of Sidekiq.configure_server in Rails....
jva's user avatar
  • 2,817
0 votes
0 answers
67 views

Rails/Redis ActiveRecord::RecordNotFound error even when the record clearly exists

I am currently working on a piece of software for the company I am working at, and I am at a complete loss as to how I can resolve this error. This is what Sidekiq spits back at me 09:26:23 sidekiq.1 |...
Evan Wilson's user avatar
0 votes
1 answer
39 views

Issue with Sidekiq and Redis in Production on Rails 7.0.8.1

I'm experiencing issues configuring Sidekiq in my production environment. The application is a Rails 7.0.8.1 running on an Ubuntu 22.04 server, and the installed Redis version is 7.2.5. However, when ...
Fillype Farias's user avatar
0 votes
1 answer
60 views

NoMethodError: undefined method `jobs' for module Sidekiq::Job

In my event service I'm trying to delete a job, but I see this: NoMethodError: undefined method `jobs' for module Sidekiq::Job I know that it is possible to delete using ScheduledSet, but I cannot ...
Максим Волков's user avatar
0 votes
0 answers
78 views

Starting chromedriver from rails app gives unable to connect to /usr/bin/chromedriver 127.0.0.1:9515

I've been debugging this for quite some time and I don't know what else I should do to fix this. Long story short: I have a rails app that needs to launch chromedriver to navigate to a specific ...
brunotiago's user avatar
0 votes
1 answer
104 views

How to Implement `around_perform` callback after including Sidekiq (Sidekiq::Job) inside ApplicationJob

To streamline the inheritance of Sidekiq::Job into all of my jobs and as an attempt to leverage Rails' built-in callbacks, I've implemented ApplicationJob like this to log whodunnit data (I have also ...
Richard Wright's user avatar
0 votes
1 answer
78 views

sidekiqctl stop halting the further execution of commands in preStop on devtron

Trying to run sidekiqctl stop in preStop hook of pod lifecycle, doing so to gracefully shutdown sidekiq process while pod termination. Script that I'm trying to execute in preStop hook echo "...
Narendra's user avatar
  • 125
2 votes
0 answers
12 views

batch.jobs perform_in rather than perform_async

We had a situation where spawning 3000+ child jobs with perform_async inside a batch.jobs block caused all child jobs to "bunch up" and prevented other jobs from executing. The pseudo code ...
Bosco So's user avatar
0 votes
1 answer
41 views

Connection Sidekiq/Redis fail with code WSAENOPROTOOPT

I am building an Ruby on Rails app that rely on Sidekiq. This app run on a windows server VM and and Redis run on a Debian 11 VM. When I am starting my Sidekiq server, I am met with this error message....
Adenathael's user avatar
0 votes
0 answers
25 views

ActiveRecord::RecordNotFound: Couldn't find Sidekiq::Sequence::Record with 'id'

I'm using the Sidekiq-sequence Gem to run sidekiq jobs in a sequence instead of all at once. I'm getting this warning in my Sidekiq retry queue and not real sure what to do about them and if they are ...
ToddT's user avatar
  • 3,210
0 votes
0 answers
43 views

Getting Argument Error while trying to cancel a sidekiq job using Sidekiq::Status.cancel

Am trying to cancel a siekiq job. I used Sidekiq::Status.cancel(jid) This is my Sidekiq::Status module require 'sidekiq-status/version' require 'sidekiq-status/sidekiq_extensions' require 'sidekiq-...
Pranathi D's user avatar
0 votes
2 answers
66 views

Can I start a sidekiq job from a Heroku procfile?

If I have a worker called MigrationWorker can I run that from a procFile that would run when pushing code to Heroku? This is my current procFile that starts everything, but I wonder if I can either ...
ToddT's user avatar
  • 3,210
1 vote
2 answers
79 views

How to retry for a period of time with sidekiq?

I am looking for a way to limit a job, to be retried only for 2 days or 48 hours. After which it should be cancelled, unless processed. I know with sidekiq_options, I can limit the number of retries. ...
Piyush Singhania's user avatar

15 30 50 per page
1
2 3 4 5
160