hoptoad

How do i integrate Hoptoad with DelayedJob and DaemonSpawn?

北慕城南 提交于 2019-12-03 14:43:06
问题 I have been happily using the DelayedJob idiom: foo.send_later(:bar) This calls the method bar on the object foo in the DelayedJob process. And I've been using DaemonSpawn to kick off the DelayedJob process on my server. But... if foo throws an exception Hoptoad doesn't catch it. Is this a bug in any of these packages... or do I need to change some configuration... or do I need to insert some exception handling in DS or DJ that will call the Hoptoad notifier? In response to the first comment

How do i integrate Hoptoad with DelayedJob and DaemonSpawn?

老子叫甜甜 提交于 2019-12-03 03:38:38
I have been happily using the DelayedJob idiom: foo.send_later(:bar) This calls the method bar on the object foo in the DelayedJob process. And I've been using DaemonSpawn to kick off the DelayedJob process on my server. But... if foo throws an exception Hoptoad doesn't catch it. Is this a bug in any of these packages... or do I need to change some configuration... or do I need to insert some exception handling in DS or DJ that will call the Hoptoad notifier? In response to the first comment below. class DelayedJobWorker < DaemonSpawn::Base def start(args) ENV['RAILS_ENV'] ||= args.first ||