Skip to content

Instantly share code, notes, and snippets.

@jafoca
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jafoca/9858884 to your computer and use it in GitHub Desktop.
Save jafoca/9858884 to your computer and use it in GitHub Desktop.
Log output - delayed_job Job NilClass# error
/////////////////////////////////////////////////////////////////
Below is the log output from the LIVE environment when Heroku Scheduler calls the "rake jobs:workoff" task:
/////////////////////////////////////////////////////////////////
2014-03-29T14:52:15.693202+00:00 heroku[api]: Starting process with command `bundle exec rake jobs:workoff && curl https://nosnch.in/7f302971c2` by scheduler@addons.heroku.com
2014-03-29T14:52:19.094078+00:00 heroku[scheduler.6256]: Starting process with command `bundle exec rake jobs:workoff && curl https://nosnch.in/7f302971c2`
2014-03-29T14:52:19.692272+00:00 heroku[scheduler.6256]: State changed from starting to up
2014-03-29T14:52:24.918291+00:00 app[scheduler.6256]: Connecting to database specified by DATABASE_URL
2014-03-29T14:52:26.393321+00:00 app[scheduler.6256]: [Worker(host:8f7be6df-5b45-4fa5-a202-e386234c2a5c pid:3)] Job NilClass# (id=5) RUNNING
2014-03-29T14:52:26.371554+00:00 app[scheduler.6256]: [Worker(host:8f7be6df-5b45-4fa5-a202-e386234c2a5c pid:3)] Job NilClass# (id=4) RUNNING
2014-03-29T14:52:26.387341+00:00 app[scheduler.6256]: [Worker(host:8f7be6df-5b45-4fa5-a202-e386234c2a5c pid:3)] Job NilClass# (id=4) COMPLETED after 0.0157
2014-03-29T14:52:26.278109+00:00 app[scheduler.6256]: [Worker(host:8f7be6df-5b45-4fa5-a202-e386234c2a5c pid:3)] Starting job worker
2014-03-29T14:52:26.566170+00:00 app[scheduler.6256]: Dload Upload Total Spent Left Speed
2014-03-29T14:52:26.402699+00:00 app[scheduler.6256]: [Worker(host:8f7be6df-5b45-4fa5-a202-e386234c2a5c pid:3)] Job NilClass# (id=5) COMPLETED after 0.0093
2014-03-29T14:52:26.406434+00:00 app[scheduler.6256]: [Worker(host:8f7be6df-5b45-4fa5-a202-e386234c2a5c pid:3)] 2 jobs processed at 15.5906 j/s, 0 failed
2014-03-29T14:52:26.566050+00:00 app[scheduler.6256]: % Total % Received % Xferd Average Speed Time Time Time Current
2014-03-29T14:52:26.409761+00:00 app[scheduler.6256]: [Worker(host:8f7be6df-5b45-4fa5-a202-e386234c2a5c pid:3)] No more jobs available. Exiting
2014-03-29T14:52:26.689884+00:00 app[scheduler.6256]: Got it, thanks!
0 15 0 15 0 0 109 0 --:--:-- --:--:-- --:--:-- 138
2014-03-29T14:52:27.898214+00:00 heroku[scheduler.6256]: Process exited with status 0
2014-03-29T14:52:27.914182+00:00 heroku[scheduler.6256]: State changed from up to complete
/////////////////////////////////////////////////////////////////
Output from STAGING (working) environment below
////////////////////////////////////////////////////////////////
2014-03-29T15:32:36.785308+00:00 heroku[api]: Starting process with command `bundle exec rake jobs:workoff && curl https://nosnch.in/7f302971c2` by scheduler@addons.heroku.com
2014-03-29T15:32:42.071657+00:00 heroku[scheduler.1763]: Starting process with command `bundle exec rake jobs:workoff && curl https://nosnch.in/7f302971c2`
2014-03-29T15:32:42.726877+00:00 heroku[scheduler.1763]: State changed from starting to up
2014-03-29T15:32:47.700393+00:00 app[scheduler.1763]: Connecting to database specified by DATABASE_URL
2014-03-29T15:32:49.077085+00:00 app[scheduler.1763]: [Worker(host:02c6d67a-ddbe-4433-a160-7aad7f9906ad pid:3)] Starting job worker
2014-03-29T15:32:49.220893+00:00 app[scheduler.1763]: [Worker(host:02c6d67a-ddbe-4433-a160-7aad7f9906ad pid:3)] Job Order#upload_without_delay (id=8) RUNNING
2014-03-29T15:32:50.127462+00:00 app[scheduler.1763]: [Worker(host:02c6d67a-ddbe-4433-a160-7aad7f9906ad pid:3)] Job Order#upload_without_delay (id=8) COMPLETED after 0.9059
2014-03-29T15:32:50.133838+00:00 app[scheduler.1763]: [Worker(host:02c6d67a-ddbe-4433-a160-7aad7f9906ad pid:3)] 1 jobs processed at 0.9466 j/s, 0 failed
2014-03-29T15:32:50.139984+00:00 app[scheduler.1763]: [Worker(host:02c6d67a-ddbe-4433-a160-7aad7f9906ad pid:3)] No more jobs available. Exiting
2014-03-29T15:32:50.490079+00:00 app[scheduler.1763]: % Total % Received % Xferd Average Speed Time Time Time Current
2014-03-29T15:32:50.491268+00:00 app[scheduler.1763]: Dload Upload Total Spent Left Speed
2014-03-29T15:32:50.804971+00:00 app[scheduler.1763]: Got it, thanks!
0 15 0 15 0 0 44 0 --:--:-- --:--:-- --:--:-- 57
2014-03-29T15:32:52.329920+00:00 heroku[scheduler.1763]: Process exited with status 0
2014-03-29T15:32:52.345352+00:00 heroku[scheduler.1763]: State changed from up to complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment