Skip to content

Commit

Permalink
Improve demo output in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed May 12, 2024
1 parent 2dedb35 commit 641fa24
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 17 deletions.
40 changes: 26 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.out
2 changes: 1 addition & 1 deletion demo/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 4 additions & 2 deletions demo/workflow.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 641fa24

Please sign in to comment.