Hi,

I am trying to use pyramid_scheduler module to schedule job. Here is code 
snippet

File : development.ini
# Scheduler Settings
scheduler.combined   = false
scheduler.queues     = jobs
scheduler.broker.url = memory://localhost

File : __init__.py

from pkg1.module1 import test_job

def main(global_config, **settings):
  # Some code
  config.include('pyramid_scheduler')
  config.registry.scheduler.add_date_job(test_job, time.time() + 3600)
  config.registry.scheduler.add_cron_job(weather_push,hour=13,minute=17)

There is no error & application started successfully. test_job function 
simply create log file & put some log statement about when job get run.

Thanks
Aniruddha

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to