Skip to content

Add option for dumping run output in more formats than just the default JSON (YAML & plain-text) #540

Description

@robnewman

Currently, I can run

$ tw runs dump -i <run-id> -w <org-id/wksp-id> -o file.tar.gz 

and I get a very nice gzipped tarball of the run logs. However, these are only available in JSON format (contents of the unzipped tarball pasted below):

$ ls -la file
total 2280
drwx------@ 10 robnewman  staff   320B Sep  4 13:42 .
drwxr-xr-x  38 robnewman  staff   1.2K Sep  4 13:42 ..
-rw-r--r--@  1 robnewman  staff   422K Sep  4 13:41 nextflow.log
-rw-r--r--@  1 robnewman  staff   1.3K Sep  4 13:41 service-info.json
-rw-r--r--@  1 robnewman  staff   3.1K Sep  4 13:41 workflow-launch.json
-rw-r--r--   1 robnewman  staff   672B Sep  4 13:41 workflow-load.json
-rw-r--r--   1 robnewman  staff   808B Sep  4 13:41 workflow-metadata.json
-rw-r--r--   1 robnewman  staff   224K Sep  4 13:41 workflow-metrics.json
-rw-r--r--   1 robnewman  staff   368K Sep  4 13:41 workflow-tasks.json
-rw-r--r--   1 robnewman  staff    99K Sep  4 13:41 workflow.json

It would be useful to specify an arg (e.g. -f yaml|json|txt for formatting the output. Currently I don't see anything available when executing tw runs dump -h.

I know I can download YAML formatted parameters from the Seqera Platform run details page, but apparently that's just a client-side on-demand conversion. It would be helpful to add support for multiple dump formats.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsquad-strandOwned by Platform Strand Squad

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions