Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.31 KB

production_settings.md

File metadata and controls

39 lines (28 loc) · 1.31 KB

Supporting Enqueue

Enqueue is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:


Production settings

Supervisord

As you may read in quick tour you have to run enqueue:consume in order to process messages The php process is not designed to work for a long time. So it has to quit periodically. Or, the command may exit because of error or exception. Something has to bring it back and continue message consumption. We advise you to use Supervisord for that. It starts processes and keep an eye on them while they are working.

Here an example of supervisord configuration. It runs four instances of enqueue:consume command.

[program:pf_message_consumer]
command=/path/to/bin/console --env=prod --no-debug --time-limit="now + 5 minutes" enqueue:consume
process_name=%(program_name)s_%(process_num)02d
numprocs=4
autostart=true
autorestart=true
startsecs=0
user=apache
redirect_stderr=true

Note: Pay attention to --time-limit it tells the command to exit after 5 minutes.

back to index