Handle exception in Sidekiq 3 jobs

落花浮王杯 提交于 2020-01-04 13:26:13

问题


I am using Sidekiq 3 in my ruby on rails 3.2 application. How can I handle exception in Sidekiq jobs without plugin (for example: Honeybadger, Airbrake, Rollbar, BugSnag). I want to catch exception that occurs in the job.


回答1:


Bugsnag actually comes with built-in support for catching errors in both Sidekiq 2 and 3, so it will automatically detect any exceptions in your sidekiq jobs!



来源:https://stackoverflow.com/questions/24269388/handle-exception-in-sidekiq-3-jobs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!