Sha256: 7e76430032de526f7f3a85bdbb2477c7d51c3d04ddbace1620bd31e50216cffc

Contents?: true

Size: 958 Bytes

Versions: 1

Compression:

Stored size: 958 Bytes

Contents

# Zhong

Useful, reliable distributed cron.

# Installation

Add this line to your application’s Gemfile:

```ruby
gem 'zhong'
```

## Usage

```ruby
r = Redis.new

Zhong.schedule(redis: r) do
  category "stuff" do
    every(5.seconds, "foo") { puts "foo" }
    every(1.week, "baz", at: "mon 22:45") { puts "baz" }
  end

  category "clutter" do
    every(1.second, "compute", if: -> (t) { rand < 0.5 }) { puts "something happened" }
  end
end
```

## TODO
 - better logging
 - error handling
 - tests
 - examples
 - callbacks
 - generic handler

## History

View the [changelog](https://github.com/nickelser/zhong/blob/master/CHANGELOG.md).

## Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

- [Report bugs](https://github.com/nickelser/zhong/issues)
- Fix bugs and [submit pull requests](https://github.com/nickelser/zhong/pulls)
- Write, clarify, or fix documentation
- Suggest or add new features

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zhong-0.1.0 README.md