Skip to content

Commit b6eb246

Browse files
author
Yuan Yao
committed
Add next_token field in tasks query
1 parent b92d7fa commit b6eb246

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scaleapi/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ def tasks(self, **kwargs):
119119
offset is the number of results to skip (for showing more pages).
120120
"""
121121
allowed_kwargs = {'start_time', 'end_time', 'status', 'type', 'project',
122-
'batch', 'limit', 'offset', 'completed_before', 'completed_after'}
122+
'batch', 'limit', 'offset', 'completed_before', 'completed_after',
123+
'next_token'}
123124
for key in kwargs:
124125
if key not in allowed_kwargs:
125126
raise ScaleInvalidRequest('Illegal parameter %s for ScaleClient.tasks()'

0 commit comments

Comments
 (0)