Skip to content

not reporting rake tasks #25

Description

@choxi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions