如何讓 whenever 排程執行的程式,噴錯時寫到 Rollbar

串接 Rollbar 的好處是可以方便監控伺服器噴錯。但是在使用 whenever 排程時執行程式時,有辦法在噴錯時也寫到 Rollbar 嗎?

如果是使用 sidekiq,無論是使用 include Sidekiq::Worker 產生的 worker,或是使用 sidekiq 當成 queue_adapterActiveJob,Rollbar 都有串接。另外像是 rake 也是有串接的。詳細可以參考 plugins 原始碼以及文件。


How to Update Your Pry Prompt Setting since v0.13.0

The pry gem changed itsPry::Prompt API since v0.13.0, and deprecated setting prompt through Pry.config.prompt = [] . If you have customized this way, you should use the new API instead.