#794: send repository_id to resque job

This commit is contained in:
Vokhmin Alexey V 2012-12-21 16:23:46 +04:00
parent da4860bc45
commit 7f14958a89
2 changed files with 5 additions and 2 deletions

View File

@ -292,7 +292,10 @@ class BuildList < ActiveRecord::Base
:platform_path => platform_path,
:released => save_to_platform.released
},
:repository_name => save_to_repository.name,
:repository => {
:name => save_to_repository.name,
:id => save_to_repository.id
},
:time_living => 2400 # 40 min
}]
)

View File

@ -239,7 +239,7 @@ class Project < ActiveRecord::Base
:platform_path => platform_path,
:released => platform.released
},
:repository_name => repository.name,
:repository => { :name => repository.name, :id => repository.id },
:cleanup => true,
:save_results => false,
:time_living => 2400 # 40 min