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

fix keyerror on missing rq queue #135

Merged
merged 1 commit into from
Oct 17, 2024
Merged

fix keyerror on missing rq queue #135

merged 1 commit into from
Oct 17, 2024

Conversation

amyasnikov
Copy link
Owner

@amyasnikov amyasnikov commented Oct 17, 2024

Fixes #134

@amyasnikov amyasnikov merged commit 7bd2823 into master Oct 17, 2024
7 checks passed
@amyasnikov amyasnikov deleted the fix_134 branch October 17, 2024 21:18
@ArmansPing
Copy link

ArmansPing commented Oct 23, 2024

Hi, I've upgraded validity to version 3.0.5. The bug in #134 has been fixed indeed.
But there is another error occured when I run a compliance tests

Unable to run script: no running RQ worker found for the queue "validity_tests"

Expecting your reply,thanks a lot!

@amyasnikov
Copy link
Owner Author

Hey @ArmansPing, the error says that:

  1. You've configured custom queue "validity_tests" to serve your "run tests" requests.
  2. You've NOT configured your RQ worker to serve that queue.

To make it work, you have to start RQ worker process serving the queue you've configured

./manage.py rqworker validity_tests

Here is the NetBox docs article regarding this topic:
https://netboxlabs.com/docs/netbox/en/stable/plugins/development/background-tasks/

If you have any further questions, please create a discussion

@ArmansPing
Copy link

This helps very much ,thanks a lot!

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

Successfully merging this pull request may close these issues.

class KeyError 'validity_tests' when running tests
2 participants