On 28/02/13 17:16 +0000, [email protected] wrote: > Reviewers: , > > > > Please review this at http://codereview.tryton.org/685003/ > > Affected files: > A examples/purchase_requests.py > A trytond_celery.py
This is a prototype to see possibilities to use Celery to schedule and
dispatch work.
There are many use cases for Celery with Tryton:
- Replace the internal cron
- Dispatch on many cpu's/hosts tasks like the computation of
purchase requests
- Having asynchrone task, like the validation of sale.
For the last one, asynchrone task. I'm thinking about adding a post
transaction hook on Transaction object. It will be a list of callable
that will be called once the transaction is commited. It could be used
to post tasks to Celery but also for example send emails.
--
Cédric Krier
B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/
pgpe69YkqWnMn.pgp
Description: PGP signature
