提交 4a13c1e1 编写于 作者: K Kazunori Kajihiro

Yield with an error instance instead of error class

上级 d3058621
......@@ -49,7 +49,7 @@ def retry_on(exception, wait: 3.seconds, attempts: 5, queue: nil, priority: nil)
retry_job wait: determine_delay(wait), queue: queue, priority: priority
else
if block_given?
yield self, exception
yield self, error
else
logger.error "Stopped retrying #{self.class} due to a #{exception}, which reoccurred on #{executions} attempts. The original exception was #{error.cause.inspect}."
raise error
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册