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

load CWL and Snakemake specification #537

Open
VMois opened this issue Aug 9, 2022 · 0 comments
Open

load CWL and Snakemake specification #537

VMois opened this issue Aug 9, 2022 · 0 comments

Comments

@VMois
Copy link

VMois commented Aug 9, 2022

Originated from this analysis - #535 (comment)

With reana-client-go, we cannot load workflow specifications for CWL, Snakemake, and Yadage. Because of that, we will need to move specification loading to reana-server. Currently, Yadage is loaded in the start_workflow endpoint. We should also add loading of CWL and Snakemake specifications there. This change should nicely play with validation there.

Example of Yadage loading and other engines:

# This is necessary for GitLab integration
if workflow.type_ == "yadage":
_load_and_save_yadage_spec(
workflow, workflow_dict["operational_options"]
)
elif workflow.type_ in ["cwl", "snakemake"]:
reana_yaml_path = os.path.join(workflow.workspace_path, "reana.yaml")
workflow.reana_specification = load_reana_spec(
reana_yaml_path, workflow.workspace_path
)
Session.commit()

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

No branches or pull requests

1 participant