{"id":15405202,"url":"https://github.com/fnando/sidekiq-clockwork","last_synced_at":"2025-04-17T00:52:04.265Z","repository":{"id":33142842,"uuid":"153069225","full_name":"fnando/sidekiq-clockwork","owner":"fnando","description":"Sidekiq::Clockwork is a simplistic implementation of a job scheduler based on Clockwork, but without having to run a separate process.","archived":false,"fork":false,"pushed_at":"2023-03-16T09:57:00.000Z","size":47,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-25T23:44:23.964Z","etag":null,"topics":["clockwork","job-scheduler","scheduler","sidekiq"],"latest_commit_sha":null,"homepage":"","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/fnando.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":["fnando"],"custom":["https://paypal.me/nandovieira/🍕"]}},"created_at":"2018-10-15T07:17:29.000Z","updated_at":"2023-09-04T17:34:40.000Z","dependencies_parsed_at":"2024-10-01T16:15:28.335Z","dependency_job_id":"33a20f43-b7bb-4f44-91f7-38f0a3a16002","html_url":"https://github.com/fnando/sidekiq-clockwork","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fsidekiq-clockwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fsidekiq-clockwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fsidekiq-clockwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fsidekiq-clockwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnando","download_url":"https://codeload.github.com/fnando/sidekiq-clockwork/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249294944,"owners_count":21246014,"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":["clockwork","job-scheduler","scheduler","sidekiq"],"created_at":"2024-10-01T16:15:25.472Z","updated_at":"2025-04-17T00:52:04.247Z","avatar_url":"https://github.com/fnando.png","language":"Ruby","funding_links":["https://github.com/sponsors/fnando","https://paypal.me/nandovieira/🍕"],"categories":[],"sub_categories":[],"readme":"# sidekiq-clockwork\n\n[![Tests](https://github.com/fnando/sidekiq-clockwork/workflows/ruby-tests/badge.svg)](https://github.com/fnando/sidekiq-clockwork)\n[![Gem](https://img.shields.io/gem/v/sidekiq-clockwork.svg)](https://rubygems.org/gems/sidekiq-clockwork)\n[![Gem](https://img.shields.io/gem/dt/sidekiq-clockwork.svg)](https://rubygems.org/gems/sidekiq-clockwork)\n\nSidekiq::Clockwork is a simplistic implementation of a job scheduler based on\nClockwork, but without having to run a separate process.\n\n## Installation\n\n```bash\ngem install sidekiq-clockwork\n```\n\nOr add the following line to your project's Gemfile:\n\n```ruby\ngem \"sidekiq-clockwork\"\n```\n\n## Usage\n\nCreate your job scheduler and make sure that it's loaded by Sidekiq's server\n(when you run the sidekiq command).\n\n```ruby\nSidekiq::Clockwork.run do\n  # This is the default timeout\n  # sleep_timeout 0.1\n\n  # By default, it comes with a error handler like the following:\n  # error_handler do |error|\n  #   $stderr \u003c\u003c \"[CLOCKWORK] #{error.class}: #{error.message}\"\n  #   $stderr \u003c\u003c \" (\" \u003c\u003c error.backtrace_locations.first \u003c\u003c \")\\n\"\n  # end\n  #\n  # You can clean up error handlers with:\n  # error_handlers.clear\n  #\n  # You may want to use an exception tracker like Rollbar:\n  # error_handler do |error|\n  #   Rollbar.error(error)\n  # end\n  #\n\n  # You can schedule jobs by using `every`, which receives\n  # an interval in seconds.\n  every(30.seconds) { SomeWorker.perform_async }\nend\n```\n\nSidekiq::Clockwork is single-threaded and sequencial by design, so make sure\nyour scheduler only enqueue jobs without doing any processing (tl;dr make it as\nfast as you can).\n\n## Maintainer\n\n- [Nando Vieira](https://github.com/fnando)\n\n## Contributors\n\n- https://github.com/fnando/sidekiq-clockwork/contributors\n\n## Contributing\n\nFor more details about how to contribute, please read\nhttps://github.com/fnando/sidekiq-clockwork/blob/main/CONTRIBUTING.md.\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](https://opensource.org/licenses/MIT). A copy of the license can be\nfound at https://github.com/fnando/sidekiq-clockwork/blob/main/LICENSE.md.\n\n## Code of Conduct\n\nEveryone interacting in the sidekiq-clockwork project's codebases, issue\ntrackers, chat rooms and mailing lists is expected to follow the\n[code of conduct](https://github.com/fnando/sidekiq-clockwork/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fsidekiq-clockwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnando%2Fsidekiq-clockwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fsidekiq-clockwork/lists"}