seqeralabs / nf-tower

Nextflow Tower system

Home Page:https://tower.nf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API endpoint pagination key 'max' needed for tasks

combiz opened this issue · comments

The API endpoint for tasks (https://tower.nf/openapi/index.html#get-/workflow/-workflowId-/tasks) paginates the results, returning the first ten records. However, there is no 'max' key available for this endpoint to control the number of records returned, as implemented in other endpoints (e.g. https://tower.nf/openapi/index.html#get-/workflow).

Thanks for reporting, think here the problem is the docs, there are actually those params:

  • start: initial offset
  • length: max number of record returned (default: 10, max: 100)

Excellent, thanks, yes these params are not in the docs.