SIGHUP when loading jobs on cedar #15

Closed
jfeldstein opened this Issue Nov 1, 2011 · 1 comment

Comments

Projects
None yet
1 participant

I've got a task that queues a bunch of users for a data update.

Before workless, it would run and leave a bunch of jobs in the queue. I'd spin up workers by hand to handle it.

Now, I have workless. When I run the task locally, it loads the jobs and then a moment later a worker spins up to start handling them.

But when I run the same task on heroku, I get:

$: heroku run rake fetch_rss --trace
Running rake fetch_rss --trace attached to terminal... up, run.5
** Invoke fetch_rss (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute fetch_rss
rake aborted!
SIGHUP

(See full trace by running task with --trace)

Watching my logs, no workers are ever spun up.

Any thoughts?

Issue is that workless is using the local scaler, even in production. Fixed by adding

config.after_initialize do 
  Delayed::Job.scaler = :heroku_cedar
end

to production environment

@jfeldstein jfeldstein closed this Nov 2, 2011

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