-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced annoying screen-handling by resque-pool
- Loading branch information
1 parent
137ce3f
commit e042aab
Showing
5 changed files
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
parse,plos,zipfulldata,preparse,mendeley,snpedia,mendeley_details,mailnewgenotype,recommendphenotypes,recommendvariation: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
require 'resque/pool/tasks' | ||
require 'resque' | ||
|
||
task "resque:setup" => :environment | ||
|
||
task "resque:pool:setup" do | ||
# close any sockets or files in pool manager | ||
ActiveRecord::Base.connection.disconnect! | ||
# and re-open them in the resque worker parent | ||
Resque::Pool.after_prefork do |job| | ||
ActiveRecord::Base.establish_connection | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters