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

Add data release as workflow dispatch option #61

Merged
merged 5 commits into from
Jun 7, 2024

Conversation

jashapiro
Copy link
Member

Closes #60

Since the primary method of running the openscpca-nf workflow will be via workflow dispatch, I wanted to add the ability to specify a data release to the options there, so this PR does that. In particular, we may want to run on "future" releases during the process of preparing a new data release.

As with other arguments, the value is passed along via setting an environment variable in the tmux launch script before sending it to AWS.

The release is only used for the simulate entrypoint or when running the rest of the workflow with real data, to prevent overwriting the prefix for test data.

I also added a check that the release prefix is valid, so we don't waste time trying to launch a workflow when the input directory doesn't exist. If that and/or the nextflow pull fails, we report the error and exit.

@jashapiro jashapiro requested a review from jaclyn-taroni June 7, 2024 14:03
Copy link
Member

@jaclyn-taroni jaclyn-taroni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good, so I am approving.

Since the primary method of running the openscpca-nf workflow will be via workflow dispatch, I wanted to add the ability to specify a data release to the options there, so this PR does that.

I'm not sure if that's true, but I suppose we will find out.

@jashapiro
Copy link
Member Author

I'm not sure if that's true, but I suppose we will find out.

See my other PR... I'm not sure either!

@jashapiro jashapiro merged commit 3b4e14e into main Jun 7, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

Add ability to run workflow on a specific data release
2 participants