python - Fabric script with wrong locale when launched trough celery task -
python - Fabric script with wrong locale when launched trough celery task -
i have django web application has celery tasks. 1 of tasks launches fabric script. when run fabric script manually, locale value ok:
lang=en_us.utf-8 language= lc_ctype="en_us.utf-8" lc_numeric=pt_pt.utf-8 lc_time=pt_pt.utf-8 lc_collate="en_us.utf-8" lc_monetary=pt_pt.utf-8 lc_messages="en_us.utf-8" lc_paper=pt_pt.utf-8 lc_name=pt_pt.utf-8 lc_address=pt_pt.utf-8 lc_telephone=pt_pt.utf-8 lc_measurement=pt_pt.utf-8 lc_identification=pt_pt.utf-8 lc_all=
when fabric script launched celery task, locale is:
lang= language= lc_ctype="posix" lc_numeric="posix" lc_time="posix" lc_collate="posix" lc_monetary="posix" lc_messages="posix" lc_paper="posix" lc_name="posix" lc_address="posix" lc_telephone="posix" lc_measurement="posix" lc_identification="posix" lc_all=
does know how prepare this?
running ubuntu 12.04.4 lts. django , celery workers running supervisor.
thanks
not sure causes problem, i've manage solve using solution described here: unicodeencodeerror: 'ascii' codec can't encode character (check akaihola answer!), recommends add-on of environment variable supervisor.conf.
thanks
python django locale celery fabric
Comments
Post a Comment