chrisspen/django-chroniker

Extrange error

Closed this issue · 5 comments

Hi.
I got an error in a minimal 1.9 or 1.10 django project with a simple 'ls' command and a python 2.7
It works without jobs but when I add one...
TypeError: 'Queue' object is not callable
Did I forgot anything in the installation process?, seems really easy
I had to change line 69, but i dont know side-effects
...force_run = None #stderr_queue('force_run', False)

Thanks in advance.

Can you provide the complete traceback?

ygneo commented

I'm having same problem. This is the traceback:

$ ./manage.py cron

Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ygneo/.virtualenvs/agroptima/local/lib/python2.7/site-packages/chroniker/management/commands/cron.py", line 68, in run_job
    force_run = stderr_queue('force_run', False)
TypeError: 'Queue' object is not callable

Thanks. I'll try to reproduce and write a fix.

On Oct 31, 2016 5:59 AM, "ygneo" notifications@github.com wrote:

I'm having same problem. This is the traceback:

$ ./manage.py cron

Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(_self._args, *_self._kwargs)
File "/home/ygneo/.virtualenvs/agroptima/local/lib/python2.7/site-packages/chroniker/management/commands/cron.py", line 68, in run_job
force_run = stderr_queue('force_run', False)
TypeError: 'Queue' object is not callable


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#66 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHHl7l9a5Glp8Nkd8OTIYPW_zEPxlqMks5q5bwCgaJpZM4KejO6
.

This has been fixed in the current release.

Thank you so much!