Bj 1.0.1 -- can I rerun jobs that have had errors


Stephen Bannasch


Backgroundjob works great -- Thanks!

I have about 40 jobs in the job table that have errors and I'd like
to rerun them because I've fixed the condition which caused the
error. Is there a way to re-run them using Bj?

--- fyi: background on my problem for others ---

I'm running rails fcgi instances from lighttpd and ruby is located here:


Long ago I had set the ruby shell interpreter path for dispatch.fcgi to:


and forgot about it.

/script/runner uses:

/usr/bin/env ruby

Which when running under the lighttpd user resolves to:


Which isn't the same ruby and doesn't have the same gems.

I could fix it by re-writing the shell interpreter path for
script/runner or by changing the lighttpd.conf file by adding "PATH"
=> "/usr/local/bin" to the bin-environment setting in the
fastcgi.server for the rails app.


fastcgi.server = ( ".fcgi" =>
"socket" => basedir + "railsapp/log/code.socket",
"min-procs" => 2,
"max-procs" => 8,
"bin-path" => basedir + "railsapp/public/dispatch.fcgi",
"bin-environment" => ( "RAILS_ENV" => "production",
"RAILS_RELATIVE_URL_ROOT" => "/railsapp", "PATH" => "/usr/local/bin" )


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question