2,404
questions
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, ...
-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 ...
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 ...
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 ...
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 ...
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: ...
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=&...
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....
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 |...
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 ...
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 ...
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 ...
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 ...
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 "...
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 ...