Patch from ldap: Test version for DB sync schedule job
This commit is contained in:
parent
ffcfda912e
commit
0cc94c65a8
|
@ -3,7 +3,13 @@ class SyncDb
|
||||||
@queue = :high
|
@queue = :high
|
||||||
|
|
||||||
def self.perform()
|
def self.perform()
|
||||||
# sleep 10
|
self.start_sync
|
||||||
puts "DB 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
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
do_mail_matt:
|
# do_mail_matt:
|
||||||
every: 10s
|
# every: 10s
|
||||||
class: FetchTime
|
# class: FetchTime
|
||||||
args:
|
# args:
|
||||||
description: Runs the perform method in FetchTime
|
# description: Runs the perform method in FetchTime
|
||||||
|
|
||||||
nccu_daily_ldap_sync:
|
nccu_daily_ldap_sync:
|
||||||
cron: * * [0,12] * * *
|
cron: * * [0,12] * * *
|
||||||
class: SyncDb
|
class: SyncDb
|
||||||
args:
|
args:
|
||||||
description: Runs the perform method in SnycDB
|
description: Sync NCCU middle site with Orbit for LDAP data
|
||||||
|
|
||||||
nccu_claender_sync:
|
nccu_claender_sync:
|
||||||
every: 1m
|
cron: * * [0,12] * * *
|
||||||
class: NccuCalendar
|
class: NccuCalendar
|
||||||
args:
|
args:
|
||||||
description: Runs the perform method in NccuCalendar
|
description: Sync NCCU calendar RSS Feeds
|
Reference in New Issue