mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-11-09 22:40:36 +00:00
add customized eupathdb:fetch_changesets task that includes a Timeout; this is to address accumulation of svn processes (and system memory depletion) from redmine:fetch_changesets when server does not respond
This commit is contained in:
parent
ce1e3a9a99
commit
879da138f1
10
roles/easyredmine/files/ebrc_tasks.rake
Normal file
10
roles/easyredmine/files/ebrc_tasks.rake
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace :eupathdb do
|
||||||
|
|
||||||
|
desc 'Fetch changesets from the repositories. Same as redmine:fetch_changesets but with added timeout'
|
||||||
|
task :fetch_changesets => :environment do
|
||||||
|
Timeout.timeout(120) do
|
||||||
|
Repository.fetch_changesets
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
@ -69,6 +69,12 @@
|
|||||||
owner='{{ redmine_owner }}'
|
owner='{{ redmine_owner }}'
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
- name: install ebrc_tasks.rake
|
||||||
|
copy: dest='{{ redmine_root_dir }}/lib/tasks/ebrc_tasks.rake'
|
||||||
|
src='ebrc_tasks.rake'
|
||||||
|
owner='{{ redmine_owner }}'
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: install additional_environment.rb
|
- name: install additional_environment.rb
|
||||||
copy: dest='{{ redmine_root_dir }}/config/additional_environment.rb'
|
copy: dest='{{ redmine_root_dir }}/config/additional_environment.rb'
|
||||||
src='additional_environment.rb'
|
src='additional_environment.rb'
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
cd {{ redmine_root_dir }}
|
cd {{ redmine_root_dir }}
|
||||||
|
|
||||||
/usr/local/bin/bundle exec rake \
|
/usr/local/bin/bundle exec rake \
|
||||||
redmine:fetch_changesets \
|
eupathdb:fetch_changesets \
|
||||||
RAILS_ENV="production"
|
RAILS_ENV="production"
|
||||||
|
Loading…
Reference in New Issue
Block a user