Skip to content

Display options for metrics in tw runs view don't return anything #527

@ejseqera

Description

@ejseqera

When running tw runs view and supplying various options like --metrics-memory, --metrics-cpu, --metrics-time, --metrics-io don't return or display the appropriate information.

For example, running tw runs view --stats works just fine:

tw runs view -i 5lER0x9gjm5KGA -w seqeralabs/showcase --stats

  Run at [seqeralabs / showcase] workspace:


    General
    ---------------------+-------------------------------------------------------
     ID                  | 5lER0x9gjm5KGA
     Operation ID        | e3e438d1-e5d4-4c68-967e-fefe3f8c8c5c
     Run name            | sarek_aws_20250706_2f22e118ee16491
     Status              | SUCCEEDED
     Starting date       | Sun, 6 Jul 2025 15:06:07 GMT
     Commit ID           | ae4dd11acc8b7e13fd6d4d45a92ff29a8e2b958d
     Session ID          | 363eae12-fc30-4878-abfc-c59eb63f560b
     Username            | adamtalbot
     Workdir             | s3://seqera-showcase/scratch/cicd/sarek/work-20250706
     Container           | No container was reported
     Executors           | awsbatch
     Compute Environment | seqera_aws_ireland_fusion_nvme
     Nextflow Version    | 25.06.0-edge
     Labels              | automation

    Stats
    ----------------+--------------
     Wall Time      | 8.87 minutes
     CPU Time       | 0.13 hours
     Total Memory   | 9.36 GB
     Read           | 1.17 GB
     Write          | 0.52 GB
     Estimated Cost | $0.01

However, none of the --metrics-* flags work to return additional info other than the general info about the workflow.

tw runs view -i 5lER0x9gjm5KGA -w seqeralabs/showcase --metrics-cpu

  Run at [seqeralabs / showcase] workspace:


    General
    ---------------------+-------------------------------------------------------
     ID                  | 5lER0x9gjm5KGA
     Operation ID        | e3e438d1-e5d4-4c68-967e-fefe3f8c8c5c
     Run name            | sarek_aws_20250706_2f22e118ee16491
     Status              | SUCCEEDED
     Starting date       | Sun, 6 Jul 2025 15:06:07 GMT
     Commit ID           | ae4dd11acc8b7e13fd6d4d45a92ff29a8e2b958d
     Session ID          | 363eae12-fc30-4878-abfc-c59eb63f560b
     Username            | adamtalbot
     Workdir             | s3://seqera-showcase/scratch/cicd/sarek/work-20250706
     Container           | No container was reported
     Executors           | awsbatch
     Compute Environment | seqera_aws_ireland_fusion_nvme
     Nextflow Version    | 25.06.0-edge
     Labels              | automation

Second attempt in JSON view:

 tw -o json runs view -i 5lER0x9gjm5KGA -w seqeralabs/showcase --metrics-memory
{
  "general" : {
    "id" : "5lER0x9gjm5KGA",
    "operationId" : "e3e438d1-e5d4-4c68-967e-fefe3f8c8c5c",
    "runName" : "sarek_aws_20250706_2f22e118ee16491",
    "startingDate" : "2025-07-06T15:06:07Z",
    "commitId" : "ae4dd11acc8b7e13fd6d4d45a92ff29a8e2b958d",
    "sessionId" : "363eae12-fc30-4878-abfc-c59eb63f560b",
    "username" : "adamtalbot",
    "workdir" : "s3://seqera-showcase/scratch/cicd/sarek/work-20250706",
    "executors" : "awsbatch",
    "computeEnv" : "seqera_aws_ireland_fusion_nvme",
    "nextflowVersion" : "25.06.0-edge",
    "status" : "SUCCEEDED",
    "labels" : "automation"
  }
}

System info:


    Details
    -------------------------+-----------------------------
     Tower API endpoint      | https://api.cloud.seqera.io
     Tower API version       | 1.44.0
     Tower version           | 25.2.0-cycle15
     CLI version             | 0.12.0 (ff9446a)
     CLI minimum API version | 1.37.0
     Authenticated user      | eshajoshi

    System health status
    ---------------------------------------+----
     Remote API server connection check    | OK
     Tower API version check               | OK
     Authentication API credential's token | OK

Running on MacOS 15.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    squad-pipelinesOwned by Platform Pipelines Squad

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions