Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection used to drop for subsequent jobs. #70

Merged
merged 1 commit into from Apr 10, 2013
Merged

Conversation

khurramzaman
Copy link
Contributor

task "resque:setup" => :environment do
ENV['QUEUE'] = '*'
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
end
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just commenting because I want other people to take a look at this... If there is a better way I'd like to hear. This does look like it will work but will it also create a ton of connections to the db? Will the connection auto-release?

From what I saw in the error message I was going to try this but though I might be doing something worng.

Thoughts?

drhenner added a commit that referenced this pull request Apr 10, 2013
Connection used to drop for subsequent jobs.
@drhenner drhenner merged commit 8bfa1f6 into master Apr 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants