README.md in zhong-0.1.5 vs README.md in zhong-0.1.6
- old
+ new
@@ -43,22 +43,23 @@
on(:after_tick) do
puts "dong"
true
end
+ on(:before_run) do |job, time|
+ puts "running #{job}"
+ true # can conditionally run a specific job
+ end
+
+ on(:after_run) do |job, time, ran|
+ puts "#{job} ran?: #{ran}"
+ end
+
error_handler do |e, job|
- puts "damn, #{job} messed up: #{e}"
+ puts "dang, #{job} messed up: #{e}"
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).