diff --git a/README.rst b/README.rst index dd1250d0e..d83f2103d 100644 --- a/README.rst +++ b/README.rst @@ -42,6 +42,7 @@ Contributors: * Paul Bryant - `paulbry `_ * Rusty Davis - `rstyd `_ * Jieyang Chen - `JieyangChen7 `_ +* Krishna Chilleri - `Krishna Chilleri `_ * Patricia Grubel - `pagrubel `_ * Qiang Guan - `guanxyz `_ * Ragini Gupta - `raginigupta6 `_ diff --git a/beeflow/client/bee_client.py b/beeflow/client/bee_client.py index ac22c5e57..eed47db0a 100644 --- a/beeflow/client/bee_client.py +++ b/beeflow/client/bee_client.py @@ -26,6 +26,7 @@ from beeflow.common.parser import CwlParser from beeflow.common.wf_data import generate_workflow_id from beeflow.client import core +from beeflow.wf_manager.resources import wf_utils # Length of a shortened workflow ID short_id_len = 6 #noqa: Not a constant @@ -281,6 +282,19 @@ def is_parent(parent, path): if tarball_path: os.remove(tarball_path) + # Store provided arguments in text file for future reference + wf_dir = wf_utils.get_workflow_dir(wf_id) + sub_wf_dir = wf_dir + "/submit_command_args.txt" + + f_name = open(sub_wf_dir, "w", encoding="utf-8") + f_name.write(f"wf_name: {wf_name}\n") + f_name.write(f"wf_path: {wf_path}\n") + f_name.write(f"main_cwl: {main_cwl}\n") + f_name.write(f"yaml: {yaml}\n") + f_name.write(f"workdir: {workdir}\n") + f_name.write(f"wf_id: {wf_id}") + f_name.close() + return wf_id