Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create output file when generating resources with CLI #105

Open
adamrtalbot opened this issue Dec 18, 2023 · 2 comments
Open

Create output file when generating resources with CLI #105

adamrtalbot opened this issue Dec 18, 2023 · 2 comments

Comments

@adamrtalbot
Copy link
Collaborator

It would be useful to store a log of the generated resources when creating a platform item with seqerakit, so that we can re-use it later.

For an example, here I am adding a new compute environment and pipeline:

launch:
  - name: 'hello-world'
    workspace: 'myorg/myworkspace'
    pipeline: 'hello'

How do I fetch the results from this launch? If we generate an output structure similar to the input structure, we could do tw runs view on the output object, but currently seqerakit uses a fire-and-forget model.

Let's say we called the above yaml and added an output arg, we could store the outputs for future use.

seqerakit --output output.yml hello.yml

This may help with #83 as well as we could generate resources at creation time.

@ejseqera ejseqera added this to the v0.4.7 milestone Mar 4, 2024
@ejseqera ejseqera removed this from the v0.4.7 milestone Apr 30, 2024
@ejseqera
Copy link
Member

ejseqera commented May 1, 2024

@adamrtalbot Is the output intended to be YAML or do you mean generate a log file that captures the stdout? Could you share a desired example?

seqerakit returns the CLI command invoked under the hood through the definitions provided in the YAML file.

@adamrtalbot
Copy link
Collaborator Author

A YAML, so we could re-use it as an input if we wanted to rerun the previous command e.g.

seqerakit hello-world.yml > hello-world-2.yml
hellow-world.yml == hello-world-2.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants