-
Notifications
You must be signed in to change notification settings - Fork 48
fix: add pagination for list incomplete tasks #804
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
Conversation
562d5b4
to
c1b4349
Compare
test/test_util_taskcluster.py
Outdated
{"status": {"taskId": "7", "state": "running"}}, | ||
{"status": {"taskId": "8", "state": "completed"}}, | ||
], | ||
"continuationToken": None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I seem to remember at the end tc doesn't return a continuationToken at all? (worth double checking)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, we don't need it. sorry about that. https://github.com/taskcluster/taskcluster/blob/beb8e078536efc49aada91bd1e5b2973aad7b20d/clients/client-go/tcqueue/tcqueue.go#L297
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the server side is https://github.com/taskcluster/taskcluster/blob/beb8e078536efc49aada91bd1e5b2973aad7b20d/services/queue/src/api.js#L403 rather than the go client implementation
c1b4349
to
974d7c2
Compare
974d7c2
to
b03b9a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.