-
Notifications
You must be signed in to change notification settings - Fork 329
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
Signal Error when UnixSignalDeathPenalty is triggered #486
Comments
Getting a similar error: Exception on /dashboard/0/data/jobs/multi_optimization/started/8/1.json [GET]
Traceback (most recent call last):
File "/venv/lib/python3.12/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/rq_dashboard/web.py", line 112, in _wrapped
result_dict = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/rq_dashboard/web.py", line 491, in list_jobs
total_items, jobs = get_queue_registry_jobs_count(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/rq_dashboard/web.py", line 270, in get_queue_registry_jobs_count
total_items = current_queue.count
^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/rq/registry.py", line 89, in count
self.cleanup()
File "/venv/lib/python3.12/site-packages/rq/registry.py", line 238, in cleanup
job.execute_failure_callback(
File "/venv/lib/python3.12/site-packages/rq/job.py", line 1430, in execute_failure_callback
with death_penalty_class(self.failure_callback_timeout, JobTimeoutException, job_id=self.id):
File "/venv/lib/python3.12/site-packages/rq/timeouts.py", line 36, in __enter__
self.setup_death_penalty()
File "/venv/lib/python3.12/site-packages/rq/timeouts.py", line 69, in setup_death_penalty
signal.signal(signal.SIGALRM, self.handle_death_penalty)
File "/usr/local/lib/python3.12/signal.py", line 58, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: signal only works in main thread of the main interpreter The dashboard is run in a Kubernetes container. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Error occurs and some page can not be loaded:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: