I have two apps:
application A has a model with
dbs = DAL(.. postgres datebase only for the scheduler...)
db = DAL(... postgres database for all other functions...)
scheduler=Scheduler(dbs, tasks={...})
application B
has a function b which should insert a task into the scheduler of
application A
Why is there another application (B)?
Because function b will be called from some external processes and no call
should be lost, even if application A is down (for example for maintenance).
Would the following work? Or is there a better solution?
application B has a model with
dbs = DAL(...the same postgres database as in app A, but with migrate=False)
scheduler=Scheduler(dbs, tasks={}, migrate=False)
And in a controller a function b like
def b():
scheduler.queue_task(...)
Regards, Martin
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.