خرید بک لینک

Vote count: 0

When starting a celery worker:

celery worker --config='configModule'

the parameter for --config (configModule) has to be a python module stays in $PYTHONPATH.

The scenario is that I have an independent text file outside of $PYTHONPATH which contains the configuration information. Is there anyway I can modify configModule.py so that it can read this text file and get the configuration information correctly passed, and the above command celery worker --config='configModule' still works?

asked 5 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 19 تير 1395 ساعت: 4:28

صفحه بندی