{"id":13747488,"url":"https://github.com/socialpandas/sidekiq-priority","last_synced_at":"2025-05-09T08:33:14.545Z","repository":{"id":10545612,"uuid":"12742910","full_name":"socialpandas/sidekiq-priority","owner":"socialpandas","description":"Prioritize Sidekiq jobs within queues","archived":false,"fork":false,"pushed_at":"2019-06-17T21:43:43.000Z","size":252,"stargazers_count":47,"open_issues_count":6,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-25T18:58:57.693Z","etag":null,"topics":["priority","priority-queue","sidekiq"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/socialpandas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-10T23:17:13.000Z","updated_at":"2021-10-19T09:11:18.000Z","dependencies_parsed_at":"2022-08-30T19:11:04.316Z","dependency_job_id":null,"html_url":"https://github.com/socialpandas/sidekiq-priority","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialpandas%2Fsidekiq-priority","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialpandas%2Fsidekiq-priority/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialpandas%2Fsidekiq-priority/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialpandas%2Fsidekiq-priority/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socialpandas","download_url":"https://codeload.github.com/socialpandas/sidekiq-priority/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253217299,"owners_count":21873063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["priority","priority-queue","sidekiq"],"created_at":"2024-08-03T06:01:30.928Z","updated_at":"2025-05-09T08:33:14.283Z","avatar_url":"https://github.com/socialpandas.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"Sidekiq Priority\n================\nPrioritize Sidekiq jobs within queues\n\n[![Build Status](https://travis-ci.org/socialpandas/sidekiq-priority.png)](https://travis-ci.org/socialpandas/sidekiq-priority)\n\nOverview\n--------\n\nSidekiq Priority lets you prioritize the jobs within any Sidekiq queue.\n\nFor example, say you add 5 jobs with the default priority:\n\n```ruby\n5.times.do\n  MyWorker.perform_async(42)\nend\n```\n\nUsing 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:\n\n```ruby\nMyWorker.perform_with_priority(:high, 42)\n```\n\nThis job won't interrupt any running jobs, but it'll start before any other jobs in the queue do.\n\nYou can also add jobs that should only run with lower priority than the default priority:\n\n```ruby\nMyWorker.perform_with_priority(:low, 42)\n```\n\nInstallation\n------------\n\nInclude it in your Gemfile:\n\n    gem 'sidekiq-priority'\n\nCustom Priorities\n------------\n\nBy 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):\n\n```ruby\n# config/initializers/sidekiq_priority.rb\nSidekiq::Priority.priorities = [:very_high, :high, nil, :low]\n```\n\nLicense\n-------\n\nSidekiq Priority is released under the MIT License. Please see the MIT-LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialpandas%2Fsidekiq-priority","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocialpandas%2Fsidekiq-priority","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialpandas%2Fsidekiq-priority/lists"}