[web2py] Re: Can you have multiple plugins use Web2py Scheduler in the same App?

2015-12-17 Thread Niphlod
quoting myself ation of the Scheduler *AND the definition of tasks* itions *should be available on models* so they'd be available to the app and will be executed without issues So. - One scheduler per app: ok! - tasks definition on scheduler instantiation: as long as the task function

[web2py] Re: Can you have multiple plugins use Web2py Scheduler in the same App?

2015-12-17 Thread mike
Ok If I understand you correctly, I should only instantiate one Scheduler in the App and the Tasks should be defined in the models of the plugins. ( I was instantiating a Scheduler() in each plugin) If I define taskA() in a model called plugin_A.py and taskB() in a model plugin_B.py then I tr

[web2py] Re: Can you have multiple plugins use Web2py Scheduler in the same App?

2015-12-16 Thread Niphlod
This is definitely weird. Unless you're plugins that carry themselves the instantiation of the Scheduler AND the definition of tasks: there should be only ONE scheduler instance (because it's thought as a singleton) and tasks definitions should be available on models so they'd be available