{"id":14955491,"url":"https://github.com/parikshit223933/resque-stagger","last_synced_at":"2026-02-17T19:02:16.118Z","repository":{"id":65587700,"uuid":"595248014","full_name":"parikshit223933/resque-stagger","owner":"parikshit223933","description":"Stagger resque jobs over a period of time instead of enqueueing immediately","archived":false,"fork":false,"pushed_at":"2024-11-13T03:41:28.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-08T21:08:30.859Z","etag":null,"topics":["rails","rails5","resque","resque-workers"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/resque-stagger","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/parikshit223933.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-01-30T17:43:54.000Z","updated_at":"2025-01-04T10:16:53.000Z","dependencies_parsed_at":"2025-10-08T21:30:36.758Z","dependency_job_id":null,"html_url":"https://github.com/parikshit223933/resque-stagger","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"48b8ee6ccfbe67ffa632d14ac1dbfd312e22352e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/parikshit223933/resque-stagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshit223933%2Fresque-stagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshit223933%2Fresque-stagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshit223933%2Fresque-stagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshit223933%2Fresque-stagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parikshit223933","download_url":"https://codeload.github.com/parikshit223933/resque-stagger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikshit223933%2Fresque-stagger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29499930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T03:57:51.541Z","status":"ssl_error","status_checked_at":"2026-02-16T03:55:59.854Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["rails","rails5","resque","resque-workers"],"created_at":"2024-09-24T13:11:13.908Z","updated_at":"2026-02-17T19:02:16.103Z","avatar_url":"https://github.com/parikshit223933.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Resque-Stagger\n\nresque-stagger is a simple Ruby gem that allows you to stagger the enqueuing of jobs\nin [Resque](https://github.com/resque/resque).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'resque-stagger', require: 'resque/staggered'\n```\n\nAnd then execute:\n\n```shell\nbundle install\n```\n\nOr install it yourself as:\n\n```shell\ngem install resque-stagger\n```\n\n## Usage\n\n```ruby\nrequire 'resque/staggered'\n\n# Set up a new staggered queue\nqueue = Resque::Staggered.new(\n  start_from: Time.now + 60, # Start queuing jobs 60 seconds from now\n  number_of_jobs: 10, # Enqueue 10 jobs per time interval\n  unit_time_in_seconds: 300, # Interval of 5 minutes between each set of jobs\n  queue: 'low' # Enqueue jobs in the 'low' queue\n)\n\n# Enqueue a job with arguments\nqueue.enqueue(MyJobClass, arg1, arg2, arg3)\n```\n\n- The code sets up a new staggered queue using Resque::Staggered and then enqueues a job with arguments using the\n  enqueue method of the staggered queue.\n\n- Based on the options passed to the Resque::Staggered constructor, the staggered queue will enqueue 10 jobs every 5\n  minutes (300 seconds) starting 60 seconds from the current time, and enqueue the jobs in the \"low\" queue.\n\n- So, if this code is run at 12:00 PM, the first set of 10 jobs will be enqueued at 12:01 PM (60 seconds later), the\n  second set of 10 jobs will be enqueued at 12:06 PM (5 minutes later), the third set of 10 jobs will be enqueued at 12:\n  11 PM (5 minutes later), and so on.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/parikshit223933/resque-stagger.\n\n## License\n\nThe gem is available as open source under the terms of\nthe [MIT License](https://github.com/parikshit223933/resque-stagger/blob/master/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparikshit223933%2Fresque-stagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparikshit223933%2Fresque-stagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparikshit223933%2Fresque-stagger/lists"}