Patch from ldap: Test version for DB sync schedule job

This commit is contained in:
Christophe Vilayphiou committed 2012-05-08 21:14:57 +08:00
1 parent ffcfda912e
commit 0cc94c65a8
3 files changed
+16 -10

No files matched your search

+8 -2
View File
@@ -3,7 +3,13 @@ class SyncDb
@queue = :high
def self.perform()
# sleep 10
puts "DB Sync"
self.start_sync
end
def self.start_sync
task = 'mid_site:sync'
args = []
%x[rake #{task} --trace >> #{Rails.root}/log/rake.log]
puts "SyncDb Synced"
end
end