All Projects → socialpandas → Sidekiq Priority

socialpandas / Sidekiq Priority

Licence: mit
Prioritize Sidekiq jobs within queues

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Sidekiq Priority

Data Structures
Go datastructures.
Stars: ✭ 336 (+614.89%)
Mutual labels:  priority-queue
Sidekiq Statistic
See statistic about your workers
Stars: ✭ 709 (+1408.51%)
Mutual labels:  sidekiq
Docker Rails
Dockerize Rails 6 with ActionCable, Webpacker, Stimulus, Elasticsearch, Sidekiq
Stars: ✭ 856 (+1721.28%)
Mutual labels:  sidekiq
Goflow
A Golang based high performance, scalable and distributed workflow framework
Stars: ✭ 356 (+657.45%)
Mutual labels:  sidekiq
Heapify
The fastest JavaScript priority queue out there. Zero dependencies.
Stars: ✭ 520 (+1006.38%)
Mutual labels:  priority-queue
Iris
Convenient wrapper library to perform network queries using Retrofit and Android Priority Job Queue (Job Manager)
Stars: ✭ 17 (-63.83%)
Mutual labels:  priority-queue
Mlib
Library of generic and type safe containers in pure C language (C99 or C11) for a wide collection of container (comparable to the C++ STL).
Stars: ✭ 321 (+582.98%)
Mutual labels:  priority-queue
Sidekiq Unique Jobs
Ensure uniqueness of your Sidekiq jobs
Stars: ✭ 984 (+1993.62%)
Mutual labels:  sidekiq
Verk
A job processing system that just verks! 🧛‍
Stars: ✭ 666 (+1317.02%)
Mutual labels:  sidekiq
La gear
What do you get when you glue sneakers and sidekiq together? la_gear! Pump it up!
Stars: ✭ 8 (-82.98%)
Mutual labels:  sidekiq
Active Job Style Guide
This Background Jobs style guide is a list of best practices working with Ruby background jobs.
Stars: ✭ 355 (+655.32%)
Mutual labels:  sidekiq
Sidekiq Superworker
Directed acyclic graphs of Sidekiq jobs
Stars: ✭ 419 (+791.49%)
Mutual labels:  sidekiq
Gush
Fast and distributed workflow runner using ActiveJob and Redis
Stars: ✭ 894 (+1802.13%)
Mutual labels:  sidekiq
Api.rss
RSS as RESTful. This service allows you to transform RSS feed into an awesome API.
Stars: ✭ 340 (+623.4%)
Mutual labels:  sidekiq
Coding Ninjas Java Solutions
This will have solutions to all the problems that are included in Coding Ninja's 2020 Java Course. Star the repo if you like it.
Stars: ✭ 32 (-31.91%)
Mutual labels:  priority-queue
Tinyqueue
The smallest and simplest priority queue in JavaScript.
Stars: ✭ 322 (+585.11%)
Mutual labels:  priority-queue
High Speed Priority Queue For C Sharp
A C# priority queue optimized for pathfinding applications
Stars: ✭ 777 (+1553.19%)
Mutual labels:  priority-queue
Libgenerics
libgenerics is a minimalistic and generic library for C basic data structures.
Stars: ✭ 42 (-10.64%)
Mutual labels:  priority-queue
Sidekiq Job Php
Push and schedule jobs to Sidekiq from PHP
Stars: ✭ 34 (-27.66%)
Mutual labels:  sidekiq
Activejob Scheduler
A background job scheduler for any queue backend
Stars: ✭ 24 (-48.94%)
Mutual labels:  sidekiq

Sidekiq Priority

Prioritize Sidekiq jobs within queues

Build Status

Overview

Sidekiq Priority lets you prioritize the jobs within any Sidekiq queue.

For example, say you add 5 jobs with the default priority:

5.times.do
  MyWorker.perform_async(42)
end

Using Sidekiq Priority, you can add new jobs that have a higher priority than those original 5 jobs by calling perform_with_priority instead of perform_async:

MyWorker.perform_with_priority(:high, 42)

This job won't interrupt any running jobs, but it'll start before any other jobs in the queue do.

You can also add jobs that should only run with lower priority than the default priority:

MyWorker.perform_with_priority(:low, 42)

Installation

Include it in your Gemfile:

gem 'sidekiq-priority'

Custom Priorities

By default, two priorities are available: :high (above the default prioritization of perform_async) and :low (below the default prioritization of perform_async), but you can add others (these values should be symbols, and nil represents the default prioritization):

# config/initializers/sidekiq_priority.rb
Sidekiq::Priority.priorities = [:very_high, :high, nil, :low]

License

Sidekiq Priority is released under the MIT License. Please see the MIT-LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].