Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with RQ >= 0.7.0 #12

Closed
bbc2 opened this issue Jan 6, 2017 · 1 comment
Closed

Incompatibility with RQ >= 0.7.0 #12

bbc2 opened this issue Jan 6, 2017 · 1 comment

Comments

@bbc2
Copy link
Contributor

bbc2 commented Jan 6, 2017

Since version 0.7.0 of RQ, I get the following error when starting a worker:

> ./app/manage.py rq worker
Traceback (most recent call last):
  File "./app/manage.py", line 96, in <module>
    manager.run()
  File "/home/bertrand/code/web-findings/venv/lib/python3.5/site-packages/flask_script/__init__.py", line 412, in run
    result = self.handle(sys.argv[0], sys.argv[1:])
  File "/home/bertrand/code/web-findings/venv/lib/python3.5/site-packages/flask_script/__init__.py", line 383, in handle
    res = handle(*args, **config)
  File "/home/bertrand/code/web-findings/venv/lib/python3.5/site-packages/flask_rq2/script.py", line 42, in __call__
    return self.run(*args, **kwargs)
  File "/home/bertrand/code/web-findings/venv/lib/python3.5/site-packages/flask_rq2/script.py", line 179, in run
    queues=queues or self.rq.queues,
TypeError: <flask_rq2.script.WorkerCommand object at 0x7fac62dd5630>: worker() missing 1 required positional argument: 'connection_class'

It looks like this is due to rq/rq#741 that added the connection_class parameter to the worker command.

Note that Flask-RQ2 only requires rq>=0.6.0. I suppose this requirement should be updated until the incompatibility is fixed.

bbc2 added a commit to bbc2/Flask-RQ2 that referenced this issue Jan 18, 2017
@jlev
Copy link

jlev commented Feb 17, 2017

I found this issue via the following error, which was also resolved by restricting rq<0.7.0 in my requirements.txt

$ python manager.py rq worker
Traceback (most recent call last):
  File "manager.py", line 29, in <module>
    manager.run()
  File "/Users/jlev/Code/FftF/votebot-forms/.venv/lib/python2.7/site-packages/flask_script/__init__.py", line 412, in run
    result = self.handle(sys.argv[0], sys.argv[1:])
  File "/Users/jlev/Code/FftF/votebot-forms/.venv/lib/python2.7/site-packages/flask_script/__init__.py", line 383, in handle
    res = handle(*args, **config)
  File "/Users/jlev/Code/FftF/votebot-forms/.venv/lib/python2.7/site-packages/flask_rq2/script.py", line 43, in __call__
    return self.run(*args, **kwargs)
  File "/Users/jlev/Code/FftF/votebot-forms/.venv/lib/python2.7/site-packages/flask_rq2/script.py", line 197, in run
    queues=queues or self.rq.queues,
TypeError: <flask_rq2.script.WorkerCommand object at 0x109a2cbd0>: worker() takes exactly 17 arguments (16 given) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants