-
Notifications
You must be signed in to change notification settings - Fork 0
workers
michael-lefebvre edited this page Apr 7, 2013
·
4 revisions
Due to his capability to embed part of a document into another, Tapioca needs background workers to keep up to date all the dependencies.
You can choose between PHP-Resque (Redis's flavor) or the Tapioca Jobs's class (MongoDb's taste). Both share the same API, Worker class are exactly the same and can be switch depending your environment, ex: development use MongoDb and production Redis.
Actually, the only difference is that Tapioca Jobs’s class can be monitor directly from the admin workspace.
To define your worker, update the tapioca config file.
$ php oil refine worker
Prompt will ask you for:
environment ? [ Default: "development" ]
interval ? [ Default: "5" ]
log level ? [ Default: "0" ]
- environment set the Fuel::$env variable
- interval is the delay before checking for new job to do.
- log value are :
- 0: no log
- 1: normal
- 2: verbose