God , Resque, Resque-schedule, is working,but buggy. Need to combine with LDAP and also implement XML calendar sync.
This commit is contained in:
1 parent
dbac219c18
commit
7af17f19ac
5 files changed
+27
-13
No files matched your search
@@ -3,7 +3,7 @@ require 'resque_scheduler'
|
||||
# require 'yaml'
|
||||
|
||||
Resque.redis = 'localhost:6379'
|
||||
Resque.redis.namespace = "resque:SchedulerExample"
|
||||
#Resque.redis.namespace = "resque:SchedulerExample"
|
||||
|
||||
# If you want to be able to dynamically change the schedule,
|
||||
# uncomment this line. A dynamic schedule can be updated via the
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
do_my_job:
|
||||
every: 30s
|
||||
do_mail_matt:
|
||||
every: 10s
|
||||
class: FetchTime
|
||||
args:
|
||||
description: Runs the perform method in MyJob
|
||||
description: Runs the perform method in FetchTime
|
||||
|
||||
nccu_daily_ldap_sync:
|
||||
cron: 30 * * * * *
|
||||
class: SyncDb
|
||||
args:
|
||||
description: Runs the perform method in SnycDB
|
||||
|
||||
nccu_claender_sync:
|
||||
every: 1m
|
||||
class: NccuCalendar
|
||||
args:
|
||||
description: Runs the perform method in NccuCalendar
|
||||
Reference in new issue
Block a user