Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Troubleshooting? #21

Closed
alexUzgin opened this Issue · 5 comments

2 participants

@alexUzgin

Hi lostboy, Thanks for a great gem. It seems like the gem was working a while back, but now have stopped. I followed your instructions to config the environment variables, but the jobs are not being executed.

How would I go about troubleshooting?

Thanks!

My setup:
Heroku Stack Cedar
Rails 3.2.2
gem 'delayed_job_active_record'
gem 'workless', "~> 1.0.1"

@lostboy
Owner
@lostboy
Owner

It looks like heroku have made a small change to the environment variables I was using to detect heroku platforms. Give 1.0.2 a go and let me know how you get on.

@alexUzgin

Thank you! I remembered to add back in the Delayed Job gem. It is not required on Heroku. If anyone else encounters this issue, please be sure to have all 3 gems in your gem file:

gem 'delayed_job', '3.0.3'
gem 'delayed_job_active_record'
gem 'workless', "~> 1.0.2"

I am on
Ruby 1.9.2
Rails 3.2.2

@alexUzgin

Hi Lostboy,
Where should I include Delayed::Job.scaler = :heroku_cedar parameter?

I created workless.rb within Config/Initializers folder and added the following:
if Rails.env.production?
Delayed::Job.scaler = :heroku_cedar
end

However it causes an issue when I run rake assets:precompile

Thanks for your help.

@lostboy
Owner
@lostboy lostboy closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.