Skip to content

rails: use runner API to handle exceptions in Rails runner #33

@TylerRick

Description

@TylerRick

See airbrake/airbrake#377 / airbrake/airbrake#585

I use a lot of Rails runners instead of rake tasks for cron jobs these days. (Seems silly to have to add a new rake task for every new command, when all the rake task does is call a one-liner like SomeClass.send_reminders.)

But I was somewhat surprised to learn that these runner commands were failing and I wasn't getting any notifications. This is very bad!

I think most exception_notification Rails users would like to automatically be notified of errors occurring in their application generally, including background jobs, like what Airblade gives us (see railtie.rb), except using exception_notification ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions