Questions tagged [sidekiq]

Sidekiq is a background processing framework for Ruby.

Sidekiq is a multi-threaded background job and message processing gem written by Mike Perham and is available on GitHub.

2372 questions
0
votes
1 answer

How can I run a sidekiq worker a certain number of times per day, based on database column?

My Project model: class Project < ApplicationRecord enum :number_of_samples, { once_per_day: 0, three_times_per_day: 1, hourly: 2 }, prefix: true end The sidekiq worker: class PagespeedWorker include Sidekiq::Worker def perform puts…
SergiuXG
  • 43
  • 5
0
votes
1 answer

Don't Log A Specific Sidekiq Job In Rails

I have a sidekiq job in rails and i dont want that job to write log in bundle exec sidekiq. How do i do that? I am getting logs using this command "sudo tail -n 1000 /var/log/syslog | grep sidekiq". My job returns last 1000 sidekiq logs (1000 lines,…
ataner
  • 1
0
votes
0 answers

sidekiq and rspec doesn't work after rails admin upgrade to 3.1.1

rails 6 - ruby 2.7.5 I updated rails admin, my application still works, except for some tests and sidekiq jobs. I got this error: WARN: ActionView::Template::Error: couldn't find file 'rails_admin/filter-box' with type…
0
votes
1 answer

Mastodon Relays Seem to be Eternally Stuck on "Waiting for relay's approval"

I'm an admin on The Common Room and things have been fine until today, when I noticed that we're no longer receiving streams from the broader fediverse (on the federated timeline). I deleted all the previous relays and added new ones/re-entered the…
0
votes
0 answers

Identify the retry job in Sidekiq

When a job in Sidekiq fails, it goes into retry queue and it is retried for 25 times, as per https://github.com/mperham/sidekiq/wiki/Error-Handling#automatic-job-retry. So the question is, Is there any way to find whether the job that is currently…
Learn-ing
  • 21
  • 2
0
votes
0 answers

Using same sidekiq queue as grouped worker for different job

I'm working in Ruby on Rails(Rails 5.0) I have a grouped sidekiq worker(GoalWorker) that groups every 100 jobs. Let the queue name be "goal_queue". Now I have an another job(say GoalEmailJob) relevant to the same model and I want to use the same…
Inba
  • 71
  • 4
0
votes
0 answers

sidekiq - runaway FIFO pipes created with large job

We are using Sidekiq to process a number of backend jobs. One in particular is used very heavily. All I can really say about it is that it sends emails. It doesn't do the email creation (that's a separate job), it just sends them. We spin up a new…
0
votes
0 answers

sending Action Mailer emails with Sidekiq and without Active Job

i'm interested in running a rails app with sidekiq, and without active job. i find that if active job is there, people get confused if they should use active job apis or sidekiqs, and i want to use sidekiq's apis exclusively for performance…
schpet
  • 9,664
  • 6
  • 32
  • 35
0
votes
0 answers

Sidekiq set-up from localhost to deployment

Context: First time usage of ActiveJob via Sidekiq and Redis. Situation: Sidekiq and redis are installed and running (route /sidekiq does generate the control panel) and is polling. Issue(s?): Installation on remote server and enabling rather…
Jerome
  • 5,583
  • 3
  • 33
  • 76
0
votes
0 answers

ActionMailer failed while using SMTP in production mode

Rails 7.0.1 I have tried and succeeded using ActionMailer in development environment, however it doesn't work in production environment. It seems that I am not able to receive the mail that I sent. Here is the success(able to send mail) code of…
0
votes
1 answer

How to find an event in sentry by job arguments?

I have a rails app, sidekiq and sentry. I want to find event in sentry by job arguments. Sample: I have SomeJob which executed with arguments [{some_arg: 'Arg1'}] Job failed with error and send event to sentry. How I can find event by job…
0
votes
1 answer

Image processing in background job consumes a lot of memory

So I have a PORO service where I get one image at time and store this original image, after that I scheduled a sidekiq job where I convert this image to webp format with three different dimensions. But I noticed that sidekiq consumes ~200MB of…
CR7
  • 1,056
  • 1
  • 8
  • 18
0
votes
1 answer

Rails fetching remote data in background job

I want to fetch customers from remote db in background job. But during this time I want to keep using postgresql for other requests. I want to know if I establish_connection in worker, during this process does it cause any problem? For example…
0
votes
0 answers

Semian by Shopify with Redis/adapter and Sidekiq using Redis

In a project I tried to implemented circuit breaker pattern on Redis service. I found a project at shopify that has an implementation https://github.com/Shopify/semian https://github.com/Shopify/semian/blob/master/lib/semian/redis.rb I followed its…
0
votes
0 answers

Ruby Sidekiq: Jobs not getting processed. -> `jobs starts but doesn't log 'done' or 'fail'`

I am running 6 sidekiq jobs launched from a rake task at the same time. Each task is making active record connections and sending some data over sftp. When the task runs, the CPU usages jumps to 100%, and drops down after some time. All my tasks log…