lib/asynchronic/job.rb in asynchronic-1.1.1 vs lib/asynchronic/job.rb in asynchronic-1.2.0

- old
+ new

@@ -28,9 +28,13 @@ def async(type, params={}) @process.nest type, params nil end + def set(key, value) + @process.set key, value + end + def retry_when(exceptions, interval=1) yield rescue *exceptions => ex Asynchronic.logger.error(self.class) { "Retry for: #{ex.class} #{ex.message}" } sleep interval \ No newline at end of file