In my Ruby on Rails application, I'm using shoryouken for background processing. I've many sqs queues (6-7) in my application. One of the queue has 2000-3000 jobs and it takes around 3 hours for the worker to process these 2-3k jobs with a default…
As a relative newcomer to AWS, it has been a little bit of curve getting Shoryuken gem (with Active Job and Active Record) to work based on the setup documentation.
Middleware: I wasn't sure if the middleware was a requisite part of setting up…
I'm currently building an admin dashboard to monitor our SQS queues, inspired by this medium post.
I managed to have everything working fine with this code in my custom shoryuken middelware :
class DashboardMiddleware
def call(worker_instance,…
I'm using the shoryuken gem by running
bundle exec shoryuken -R -C config/shoryuken.yml
and shoryuken.yml is
concurrency: 25
delay: 0
queues:
- [development_high, 30]
- [development_mid, 6]
- [development_low, 2]
This works fine. However, I'd…
The shoryuken gem is a background worker for rails applications that reads from aws SQS.
I can run the shoryuken worker in my local and it's working fine. When I run it in production environment in AWS it does not work. How do you run shoryuken in…
I am migrating a background job processing service made with sidekiq to shoryuken, which is based on Amazon SQS.
With sidekiq you can customize the retries pattern by using sidekiq_retry_in:
class WorkerWithCustomRetry
include Sidekiq::Worker
…
I have an AWS SQS FIFO queue configured to deduplicate messages based on content. My rails app uses Shoryuken worker to get messages from SQS. Here is the worker code:
class MyJob
include Shoryuken::Worker
shoryuken_options queue:…
I am using rails "Shoryuken" gem but I am getting errors for validation on queues on my development environment when I started rails server below is the error:-
gems/shoryuken-2.0.11/lib/shoryuken/environment_loader.rb:172:in `validate_queues': The…
I am unable to send custom logs to Cloudwatch.
I have created /opt/aws/amazon-cloudwatch-agent/etc/shoryuken.json which contains
{
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path":…
We are trying to switch to shoryuken as our ActiveJob backend. But while testing we found that there is a lot of latency while trying to enqueue a job.
this was the code which was written to test the latency.
class ApplicationController <…
In my rails app, I have a Shoryuken runner as a runner on a Kubernetes Stack.
I have some long running job, and I want to do some action when the worker pod is stopped.
As far as I know, Kubernetes send a SIGTERM to the worker. I wish to catch this…
I currently have a rails 6 app using Shoryuken (5.2.3) with SQS to asynchronously handle user initiated image processing and uploading. Everything appears to be working as expected as far as the side effects of the job (which includes the…
I have a rails app where we want to use both sidekiq (redis queue) and shoryuken (sqs queue) for different use cases.
So now , all the sidekiq workers are defined under app/workers. To separate out shoryuken workers, we thought to define and keep…
We have a shoryuken worker process setup in rails application (ruby 2.6.6, rails > 5).
this is the shoryuken.yml.erb file
:aws:
:access_key_id: ?
:secret_access_key: ?
:region: <%= Settings.aws.region %>
:concurrency: 10
:daemon:…