[RUBY] Sidekiq-limit_fetch does not work

I wanted to manage the number of parallel processing executions in the development of ruby ​​on rails, but it didn't work, so I will talk about the cause.

What is Sidekiq-limit_fetch?

Sidekiq-limit_fetch is a gem for managing the number of parallel processing executions in sidekiq.

https://github.com/brainopia/sidekiq-limit_fetch

Gemfile


gem 'sidekiq-limit_fetch'

sidekiq.yml


:queues:
  - queue1
  - queue2

:limits:
  queue1: 2
  queue2: 5

In the above case, queue1 has 2 parallel executions and queue2 has 5 parallel executions.

The story that Sidekiq-limit_fetch didn't work

As mentioned above, the number of parallel executions exceeds the specified number even though the gem of sidekiq-limit_fetch is used.

The cause of this was overriding the limit setting function by other gems.

Gemfile


gem 'serverspec'

Due to the above gem, the set function described in Sidekiq-limit_fetch was not processed normally. serverspec is a gem for automating server testing. So by removing the serverspec from the Gemfile, sidekiq-limit_fetch will do the job for you.

However, since the phenomenon that the number of parallel executions rarely exceeded continued to occur, I found it safer to write the code that manages the number of job executions by myself.

Recommended Posts

Sidekiq-limit_fetch does not work
Java Integer comparison (==) does not work correctly
eclipse tab width change does not work.
Terminal does not start
Does the escape sequence (\) not work? (for Mac)
When @Transactional of Spring Boot does not work
@BeforeStep does not work in Tasklet of spring-batch
Note: Memory Analyzer does not work on Mac OS
Hivernate Validator does not work in WAS Liberty environment
Does .dockerignore not work? It's written differently from .gitignore!
Ruby version does not switch
[Ruby on Rails] When parameter id acquisition does not work
[Rails] Solving the problem that session timeout does not work
Docker does not work when DOCKER_HOST is specified in WSL2
Docker test DB does not start
eclipse package org.springframework.boot.web.servlet.support does not exist
Container does not start with docker-compose
[Help] Docker for windows 2.3.0.4 without login Service startup method does not work [Help]
Simulator does not work: Unable to boot device due to insufficient system resources
When the form such as Select of Materialize does not work properly
[Rails] Video does not play with video_tag
[JavaScript] Negative rounding does not match Excel
Spring Boot 2.0.0 does not start built-in tomcat
MySQL container does not start in Docker
.sql file does not run in docker-compose
[NetBeans] Story when it does not start
How to make @Transactional work that does not work if you use it incorrectly
Code written in Java-TeraPad starting from beginner does not work due to error
If the ctrl + shortcut does not work in Eclipse, disabling welcome may help