Allow the CLI command 'tw runs list' to filter by date
complete
Rob Newman
complete
Merged into master branch of the tower-cli and is just awaiting a release
Rob Newman
Resonant Grasshopper: This fix is part of the latest 0.9.3 release
R
Resonant Grasshopper
I don't see a way to close this feature request, so if an admin user can do that (or someone can show me how) then that would be great.
Rob Newman
acknowledged
Rob Newman
Hi Resonant Grasshopper - thank you for your feature request. This is currently possible, but is not yet documented. You can use all the standard filters offered by Seqera Platform in the CLI:
- status
- label
- workflowId
- runName
- username
- projectName
- after
- before
- sessionId
- is:starred
Here is a working example:
tw runs list --filter after:2024-05-30T00:00:00.000Z --workspace seqeralabs/showcase
Pipeline runs at [seqeralabs / showcase] workspace:
ID | Status | Project Name | Run Name | Username | Submit Date
----------------+-----------+-------------------+--------------------------------------+------------+-------------------------------
pZeJBOLtIvP7R | SUCCEEDED | nextflow-io/hello | hello_slurm_20240530_e75584566f774e7 | adamtalbot | Thu, 30 May 2024 09:12:51 GMT
3C9A5R7Pymd0jg | SUCCEEDED | nextflow-io/hello | wise_mayer | esha-joshi | Thu, 30 May 2024 05:42:24 GMT
Additionally, you can define multiple filter criteria using quotes (""), for example (with new lines using '\' added for readability):
tw runs list \
--filter="after:2024-05-01T00:00:00.000Z before:2024-05-05T00:00:00.000Z" \
--workspace="seqeralabs/showcase"
We do already have an open issue to update our documentation. Apologies that this is not more clear.
Please close out this feature request if this satisfies your need.
R
Resonant Grasshopper
Rob Newman - that's great news, thanks for getting back to me. I've started using the CLI quite heavily and this will help me a lot!