Skip to main content
0 votes
1 answer
10 views

sidekiq concurrency with many threads

We use Sidekiq to process background jobs, such as this: def process_order(id) ... do something end Sidekiq is set to 50-100 threads, so we've seen process_order run on the same id at the same time, ...
netwire's user avatar
  • 7,175
-1 votes
1 answer
43 views

How to start sidekiq/bundler via systemd service on rvm

so I have a systemd service to run my rails application, which works great. [Service] Type=exec User=my-user Group=my-user WorkingDirectory=/home/my-user/my-app ExecStart=/bin/bash -lc "bin/rails ...
faervan's user avatar
  • 31
0 votes
0 answers
46 views

Super odd sidekiq behavior, stops parsing file/loading methods at "has_one_attached"

I have a large Rails app I've been working on for a while... I started noticing some incredibly odd behavior recently. Just to note, this is Rails 6.1.7.8 and Sidekiq 7.3.1... Basically I started ...
Brad Herman's user avatar
  • 10.4k
0 votes
1 answer
37 views

Sidekiq::Testing.fake! and retrying jobs

I'm writing a test that invokes Sidekiq::Testing.fake!. The test is designed to assert behavior that occurs when a particular job raises an error. Normally, the job is supposed to retry up to 5 times ...
Argus9's user avatar
  • 1,925
0 votes
1 answer
64 views

Ruby + sidekiq - best solution for execute and handle big data

Imagine we have 10k entities-x. For each entity-x we should make async api call. Each api call returns 100 entities-y. Then in total we have 10k * 100 = 1_000_000 entities-y. For each entity-y we ...
xao0isb's user avatar
1 vote
0 answers
86 views

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,828
0 votes
1 answer
27 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.3k
0 votes
1 answer
53 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
72 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
1 vote
1 answer
113 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
132 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
88 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
214 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
100 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
16 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

15 30 50 per page
1
2 3 4 5
161