ask/django-celery — Issue #85: Type error with os.umask call in celerycam command
Author: kuangc
Created: 2011-11-05 00:59:49+00:00
State: open

With celery 2.4.0 and django-celery 2.4.0 (on both osx and ubuntu), when I run ./manage.py celerycam , i get the following stacktrack:

...
File "/home/ubuntu/src/django-celery/djcelery/management/commands/celerycam.py", line 22, in handle
ev.run(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/celery/bin/celeryev.py", line 35, in run
detach=detach)
File "/usr/local/lib/python2.7/dist-packages/celery/bin/celeryev.py", line 64, in run_evcam
with detached(logfile, pidfile, uid, gid, umask, workdir):
File "/usr/local/lib/python2.7/dist-packages/celery/platforms.py", line 211, in open
os.umask(self.umask)
TypeError: an integer is required

Unlike in v2.3.x, there are no more arguments for --umask, etc.

Workaround?