← Back to team overview

openerp-connector-community team mailing list archive

Connector and multiprocessing

 

Hello,

I just merged my proposal which adds a script to start jobs workers, it should be used when using OpenERP with multiple processes [0].

This closes the bug: https://bugs.launchpad.net/bugs/1193293

When you run OpenERP with workers (--workers=X), you need to run the standalone script 'openerp-connector-worker' too. The PYTHON_PATH variable environment should contain the path to the OpenERP server, example:

$ PYTHONPATH=/path/to/server /path/to/connector/openerp-connector-worker \
    --config /path/to/configfile \
    --workers=2 --logfile=/path/to/logfile

If you use the buildout branch [1], you can run it manually using:
$ bin/start_connector_worker

Or start it with supervisord (configured as autostart, you can change supervisor.connector_workers in buildout.cfg)
$ bin/supervisord

[0] https://code.launchpad.net/~openerp-connector-core-editors/openerp-connector/7.0-connector-worker-rework/+merge/171462 [1] https://code.launchpad.net/~openerp-connector-core-editors/openerp-connector/7.0-magento-connector-buildout

--
Guewen Baconnier
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 39
Office: +41 21 619 10 10
http://www.camptocamp.com/