1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-12-16 07:20: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:
Mark Heiges 2016-11-02 11:23:54 -04:00
parent ce1e3a9a99
commit 879da138f1
3 changed files with 17 additions and 1 deletions

View 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

View File

@ -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'

View File

@ -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"