collectiveidea/delayed_job — Issue #337: When a job fails to load due to a missing require, it fails silently
Author: kevmoo
Created: 2012-01-23 07:09:59+00:00
State: open

### Scenario

* Rails app with a custom job `custom_job.rb`
* `custom_job.rb` is defined in the `Job` module and lives in the jobs subdirectory in `lib`
* Put simply, this class is not picked up unless an explicit require is added

### Steps

* Load delayed job
* Open rails console
* `include 'jobs/custom_job`
* `Delayed::Job.enqueue Jobs::CustomJob.new`

### Expected

Some sort of log output that things failed in the terminal or log file

### Actual

Utter silence. Nothing in the terminal. Items just disappear from the database without a trace.

Ref: dcd69066144c760922ce2e3e5f538fe1ca6074c5