diff --git a/README.md b/README.md index 4ab0609..92277ed 100644 --- a/README.md +++ b/README.md @@ -28,27 +28,39 @@ Notable features: * Add custom cluster definitions for your resources. * Row is **fast**. -TODO: better demo script to get output for README and row show documentation examples. - ## Demonstration ```bash -> row show status -Action Completed Submitted Eligible Waiting Remaining cost -one 1000 100 900 0 24K CPU-hours -two 0 200 800 1000 8K GPU-hours +$ row submit --action=step1 -n 1 +[1/1] Submitting action 'step1' on directory dir12 and 3 more (0ms). +Row submitted job 5095791. ``` ```bash -> row show directories --value "/value" -Directory Status Job ID /value -dir1 submitted 1432876 0.9 -dir2 submitted 1432876 0.8 -dir3 submitted 1432876 0.7 +$ row show status +Action Completed Submitted Eligible Waiting Remaining cost +initialize 50 0 50 0 8 CPU-hours +step1 4 4 42 50 2K CPU-hours +step2 0 0 4 96 800 GPU-hours +``` + +```bash +$ row show directories step1 -n 3 --value="/value" +Directory Status Job ID /value +dir1 completed 116 +dir10 completed 952 +dir100 completed 139 +dir11 completed 998 + +dir12 submitted anvil/5095791 950 +dir13 submitted anvil/5095791 107 +dir14 submitted anvil/5095791 127 +dir15 submitted anvil/5095791 122 -dir4 completed 0.5 -dir5 completed 0.4 -dir6 completed 0.3 +dir16 eligible 682 +dir17 eligible 816 +dir18 eligible 803 +dir19 eligible 691 ``` ## Resources diff --git a/demo/.gitignore b/demo/.gitignore new file mode 100644 index 0000000..f47cb20 --- /dev/null +++ b/demo/.gitignore @@ -0,0 +1 @@ +*.out diff --git a/demo/demo.sh b/demo/demo.sh index 41245ff..ce9501a 100644 --- a/demo/demo.sh +++ b/demo/demo.sh @@ -16,4 +16,4 @@ row submit --action=step1 -n 1 --yes || exit 1 row show status || exit 1 -row show directories step1 -n 3 +row show directories step1 -n 3 --value="/value" diff --git a/demo/workflow.toml b/demo/workflow.toml index 172aa35..1175cf3 100644 --- a/demo/workflow.toml +++ b/demo/workflow.toml @@ -12,13 +12,15 @@ group.maximum_size = 10 name = "step1" command = "touch workspace/{directory}/step1.out" products = ["step1.out"] +previous_actions = ["initialize"] resources.walltime.per_directory = "1 day, 00:00:00" -group.maximum_size = 10 +group.maximum_size = 4 [[action]] name = "step2" command = "touch workspace/{directory}/step2.out" +previous_actions = ["step1"] products = ["step2.out"] resources.walltime.per_directory = "08:00:00" resources.gpus_per_process = 1 -group.maximum_size = 10 +group.maximum_size = 4