yojenkins
yojenkins copied to clipboard
[Bug]: When quitting build monitor, REST request error shows up
What happened?
Ran this:
yojenkins build monitor --latest --sound my_job
When build finished successfully, I pressed q and q again. Then got the following
Exception in thread Thread-1 (__thread_server_status):
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/3.10.9/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/Users/user/.pyenv/versions/3.10.9/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/Users/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/yojenkins/monitor/monitor.py", line 272, in __thread_server_status
self.server_status_data['auth'] = self.auth.verify()
File "/Users/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/yojenkins/yo_jenkins/auth.py", line 687, in verify
request_success = self.rest.request(target=request_url, is_endpoint=False, request_type='head')[2]
File "/Users/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/yojenkins/yo_jenkins/rest.py", line 191, in request
response = self.session.head(request_url,
File "/Users/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/requests_futures/sessions.py", line 138, in head
return super(FuturesSession, self).head(url, **kwargs)
File "/Users/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/requests/sessions.py", line 622, in head
return self.request("HEAD", url, **kwargs)
File "/Users/user/.pyenv/versions/3.10.9/lib/python3.10/site-packages/requests_futures/sessions.py", line 105, in request
return self.executor.submit(func, *args, **kwargs)
File "/Users/user/.pyenv/versions/3.10.9/lib/python3.10/concurrent/futures/thread.py", line 167, in submit
raise RuntimeError('cannot schedule new futures after shutdown')
RuntimeError: cannot schedule new futures after shutdown
How can we reproduce this?
yojenkins build monitor --latest --sound my_job
then q and q again
Command --debug
output
N/A
Version of yojenkins
0.0.85
Where was yojenkins
run in relation to the Jenkins server?
Locally
Was the Jenkins server containerized?
Yes
Which operating systems were you using when this happened?
- [X] macOS
- [ ] Windows
- [ ] Linux
- [ ] Other
- [ ] I don't know
How is your day going?
Amazing!