Closed
Bug 1317839
Opened 9 years ago
Closed 8 years ago
[python] taskcluster.async.Queue().buildUrl('task', task_id) is broken
Categories
(Taskcluster :: Services, defect)
Taskcluster
Services
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: jonasfj, Unassigned)
Details
taskcluster.async.Queue().buildUrl('task', task_id) is broken... when it should just work like it does in node.
Same with:
taskcluster.async.Queue().buildUrl('getLatestArtifact', 'myTaskId', 'nameOfArtifact')
Also for sync version.
| Reporter | ||
Comment 1•9 years ago
|
||
Just as important document it in the README with an example or two.
Comment 2•8 years ago
|
||
(py36) jhford-work:~/taskcluster/taskcluster-client.py $ python
Python 3.6.3 (default, Oct 4 2017, 06:09:15)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import taskcluster
>>> taskcluster.Queue().buildUrl('task', 'abcde')
'https://queue.taskcluster.net/v1/task/abcde'
>>> import taskcluster.async
>>> taskcluster.async.Queue().buildUrl('task', 'abcde')
Creating a client session outside of coroutine
client_session: <aiohttp.client.ClientSession object at 0x10ac1e400>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x10ac1e400>
'https://queue.taskcluster.net/v1/task/abcde'
>>>
Works for me.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•7 years ago
|
Component: Client Libraries → Services
You need to log in
before you can comment on or make changes to this bug.
Description
•