I'm got this gem setup in my Rails app, but it doesn't seem to catch errors inside of Rake tasks:
task :cron_task => :environment do
raise "error in cron task"
end
doesn't report anything on Ratchet, but this works:
task :cron_task => :environment do
begin
raise "error in cron task"
rescue Exception => e
Ratchetio.report_exception(e)
end
end
Is this by design? It looks like this gem taps into some Rack middleware to catch exceptions which would explain why it doesn't work for Rake tasks, is there a recommended way to have it catch all my Rake tasks?
I'm got this gem setup in my Rails app, but it doesn't seem to catch errors inside of Rake tasks:
doesn't report anything on Ratchet, but this works:
Is this by design? It looks like this gem taps into some Rack middleware to catch exceptions which would explain why it doesn't work for Rake tasks, is there a recommended way to have it catch all my Rake tasks?