{"id":15031544,"url":"https://github.com/lholden/job_scheduler","last_synced_at":"2025-10-10T08:36:15.977Z","repository":{"id":41045071,"uuid":"83875134","full_name":"lholden/job_scheduler","owner":"lholden","description":"A simple cron-like job scheduling library for Rust.","archived":false,"fork":false,"pushed_at":"2022-11-28T19:12:32.000Z","size":31,"stargazers_count":198,"open_issues_count":11,"forks_count":34,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-30T05:56:55.154Z","etag":null,"topics":["cron","cronjob","crontab","rust","rustlang"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lholden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-04T07:27:05.000Z","updated_at":"2024-10-21T04:03:59.000Z","dependencies_parsed_at":"2023-01-21T17:47:36.706Z","dependency_job_id":null,"html_url":"https://github.com/lholden/job_scheduler","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/lholden%2Fjob_scheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lholden%2Fjob_scheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lholden%2Fjob_scheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lholden%2Fjob_scheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lholden","download_url":"https://codeload.github.com/lholden/job_scheduler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174423,"owners_count":20896078,"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":["cron","cronjob","crontab","rust","rustlang"],"created_at":"2024-09-24T20:15:59.323Z","updated_at":"2025-10-10T08:36:10.943Z","avatar_url":"https://github.com/lholden.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"**NO LONGER MAINTAINED**\n\nThe project I created this crate for is no longer in use, so I haven't really had the time to keep on top of keeping things up to date. I recommend looking at other options if you need the functionality this project provides.\n\n[If someone would like to take over the project, please let me know.](https://github.com/lholden/job_scheduler/discussions/30)\n\n# JobScheduler\n[![](https://docs.rs/job_scheduler/badge.svg)](https://docs.rs/job_scheduler) [![](https://img.shields.io/crates/v/job_scheduler.svg)](https://crates.io/crates/job_scheduler) [![](https://travis-ci.org/lholden/job_scheduler.svg?branch=master)](https://travis-ci.org/lholden/job_scheduler)\n\nA simple cron-like job scheduling library for Rust.\n\n## Usage\n\nPlease see the [Documentation](https://docs.rs/job_scheduler/) for more details.\n\nBe sure to add the job_scheduler crate to your `Cargo.toml`:\n\n```toml\n[dependencies]\njob_scheduler = \"*\"\n```\n\nCreating a schedule for a job is done using the `FromStr` impl for the\n`Schedule` type of the [cron](https://github.com/zslayton/cron) library.\n\nThe scheduling format is as follows:\n\n```text\nsec   min   hour   day of month   month   day of week   year\n*     *     *      *              *       *             *\n```\n\nTime is specified for `UTC` and not your local timezone. Note that the year may\nbe omitted.\n\nComma separated values such as `5,8,10` represent more than one time value. So\nfor example, a schedule of `0 2,14,26 * * * *` would execute on the 2nd, 14th,\nand 26th minute of every hour.\n\nRanges can be specified with a dash. A schedule of `0 0 * 5-10 * *` would\nexecute once per hour but only on day 5 through 10 of the month.\n\nDay of the week can be specified as an abbreviation or the full name. A\nschedule of `0 0 6 * * Sun,Sat` would execute at 6am on Sunday and Saturday.\n\nA simple usage example:\n\n```rust\nextern crate job_scheduler;\nuse job_scheduler::{JobScheduler, Job};\nuse std::time::Duration;\n\nfn main() {\n    let mut sched = JobScheduler::new();\n\n    sched.add(Job::new(\"1/10 * * * * *\".parse().unwrap(), || {\n        println!(\"I get executed every 10 seconds!\");\n    }));\n\n    loop {\n        sched.tick();\n\n        std::thread::sleep(Duration::from_millis(500));\n    }\n}\n```\n\n## Similar Libraries\n\n* [cron](https://github.com/zslayton/cron) the cron expression parser we use.\n* [schedule-rs](https://github.com/mehcode/schedule-rs) is a similar rust library that implements it's own cron expression parser.\n\n## License\n\nJobScheduler is licensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   http://opensource.org/licenses/MIT)\n\n## Contributing\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\nPlease see the [CONTRIBUTING](CONTRIBUTING.md) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flholden%2Fjob_scheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flholden%2Fjob_scheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flholden%2Fjob_scheduler/lists"}