Closed
Bug 1498374
Opened 6 years ago
Closed 6 years ago
check_pending_scriptworker_tasks broken by taskcluster_root_url
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nthomas, Assigned: mozilla)
References
Details
Fallout from taskcluster 5.0 upgrade:
[nthomas@balrogworker-dev2.srv.releng.use1.mozilla.com nagios]$ sudo /usr/lib64/nagios/plugins/check_pending_scriptworker_tasks
Traceback (most recent call last):
File "/usr/lib64/nagios/plugins/check_pending_scriptworker_tasks", line 124, in <module>
query_pending_task_count()
File "/usr/lib64/nagios/plugins/check_pending_scriptworker_tasks", line 120, in query_pending_task_count
loop.run_until_complete(async_main())
File "/tools/python3/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
return future.result()
File "/usr/lib64/nagios/plugins/check_pending_scriptworker_tasks", line 80, in async_main
context.credentials = credentials # this creates a queue
File "/builds/scriptworker/lib/python3.6/site-packages/scriptworker/context.py", line 107, in credentials
self.queue = self.create_queue(self.credentials)
File "/builds/scriptworker/lib/python3.6/site-packages/scriptworker/context.py", line 122, in create_queue
'rootUrl': self.config['taskcluster_root_url'],
TypeError: 'NoneType' object is not subscriptable
Aki, any thoughts on the best way to fix this ?
Flags: needinfo?(aki)
Assignee | ||
Comment 1•6 years ago
|
||
Probably `export TASKCLUSTER_ROOT_URL=https://taskcluster.net`.
Flags: needinfo?(aki)
Assignee | ||
Comment 2•6 years ago
|
||
This appears to work:
77a78,79
> context.config = {'taskcluster_root_url': 'https://taskcluster.net'}
>
Assignee | ||
Comment 3•6 years ago
|
||
Reporter | ||
Comment 4•6 years ago
|
||
That's merged and working, thanks Aki.
Assignee: nobody → aki
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•