Skip to content

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

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 ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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