cron_scheduler
Version, currently 0.3.04 versions
- 0.4.0latestMar 28, 2021
- 0.3.0not indexedApr 8, 2026
- 0.2.0not indexedApr 8, 2026
- 0.1.0not indexedApr 8, 2026
github.com/kostya/cron_scheduler
Simple job scheduler with crontab patterns for Crystal Language.
49 stars
1 dependent
License: MIT
Nothing has been indexed for 0.3.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
cron_scheduler:
github: kostya/cron_scheduler
version: ~> 0.3.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.3.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# CronScheduler
Simple job scheduler with crontab patterns for Crystal Language.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
cron_scheduler:
github: kostya/cron_scheduler
```
## Usage
```crystal
require "cron_scheduler"
require "logger"
L = Logger.new STDOUT
CronScheduler.define do
# normal crontab syntax, 5 tokens (minute, hour, day, month, wday)
at("* * * * *") { L.info "every 1 minute" }
at("*/5 20-23 * * *") { L.info "every 5 minutes between 20-23 hours" }
at("*/2 */3 * * *") { L.info "every 2 minute every 3 hours" }
at("45 * * * *") { L.info "every hour at :45" }
at("* * * * SUN") { L.info "every 1 minute in sunday" }
# I added extra syntax, when 6 tokens, first one parsed as seconds
# (second, minute, hour, day, month, wday)
at("*/3 * * * * *") { L.info "every 3.seconds" }
at("20-45/5 * * * * *") { L.info "every 5.seconds between 20-45" }
at("11,22,33,44-60/2 * * * * *") { L.info "every 11,22,33,44-60/2 seconds" }
end
L.info "Scheduler started"
sleep
```
## Crontab Format

Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.3.0- Tagged
- Apr 8, 2026
- Commit
c69f7a883103- Indexed
- not yet
Dependents
Repository
github.com/kostya/cron_scheduler
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 4