Skip to content

Commit 9e94ce9

Browse files
authored
Merge pull request #237 from elehcim/fix213
Fix syntax highlighting and fix output log in workflows.md
2 parents c15cfd3 + a94d28e commit 9e94ce9

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

src/topics/staging-input-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ input file from its leading directory path.
2020
Now invoke `cwl-runner` with the tool wrapper and the input object on the
2121
command line:
2222

23-
```bash
23+
```{code-block} console
2424
$ cwl-runner linkfile.cwl arguments-job.yml
2525
[job 139928309171664] /home/example$ docker run -i --volume=/home/example/Hello.java:/var/lib/cwl/job557617295_examples/Hello.java:ro --volume=/home/example:/var/spool/cwl:rw --volume=/tmp/tmpmNbApw:/tmp:rw --workdir=/var/spool/cwl --read-only=true --net=none --user=1001 --rm --env=TMPDIR=/tmp openjdk:9.0.1-11-slim javac Hello.java
2626
Final process status is success

src/topics/workflows.md

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,30 @@ command line:
191191
```{code-block} console
192192
$ echo "public class Hello {}" > Hello.java && tar -cvf hello.tar Hello.java
193193
$ cwl-runner 1st-workflow.cwl 1st-workflow-job.yml
194-
[job untar] /tmp/tmp94qFiM$ tar --create --file /home/example/hello.tar Hello.java
195-
[step untar] completion status is success
196-
[job compile] /tmp/tmpu1iaKL$ docker run -i --volume=/tmp/tmp94qFiM/Hello.java:/var/lib/cwl/job301600808_tmp94qFiM/Hello.java:ro --volume=/tmp/tmpu1iaKL:/var/spool/cwl:rw --volume=/tmp/tmpfZnNdR:/tmp:rw --workdir=/var/spool/cwl --read-only=true --net=none --user=1001 --rm --env=TMPDIR=/tmp java:7 javac -d /var/spool/cwl /var/lib/cwl/job301600808_tmp94qFiM/Hello.java
197-
[step compile] completion status is success
198-
[workflow 1st-workflow.cwl] outdir is /home/example
199-
Final process status is success
194+
INFO /usr/bin/cwl-runner 3.1.20220802125926
195+
INFO Resolved '1st-workflow.cwl' to 'file:///home/example/1st-workflow.cwl'
196+
INFO [workflow ] start
197+
INFO [workflow ] starting step untar
198+
INFO [step untar] start
199+
INFO [job untar] /tmp/rzlj4nsg$ tar --extract --file /tmp/1yikucse/stg4148c64f-2489-449c-bef7-12d059758b13/hello.tar Hello.java
200+
INFO [job untar] completed success
201+
INFO [step untar] completed success
202+
INFO [workflow ] starting step compile
203+
INFO [step compile] start
204+
INFO [job compile] /tmp/r0kmwijd$ docker run -i --mount=type=bind,source=/tmp/r0kmwijd,target=/zurNsS --mount=type=bind,source=/tmp/bza6s5oh,target=/tmp --mount=type=bind,source=/tmp/rzlj4nsg/Hello.java,target=/var/lib/cwl/stg37272664-b5b2-4bbd-b254-1ef521ebbe3d/Hello.java,readonly --workdir=/zurNsS --read-only=true --user=1000:1000 --rm --cidfile=/tmp/4d8t2lj2/20220825125241-159808.cid --env=TMPDIR=/tmp --env=HOME=/zurNsS openjdk:9.0.1-11-slim javac -d /zurNsS /var/lib/cwl/stg37272664-b5b2-4bbd-b254-1ef521ebbe3d/Hello.java
205+
INFO [job compile] Max memory used: 28MiB
206+
INFO [job compile] completed success
207+
INFO [step compile] completed success
208+
INFO [workflow ] completed success
200209
{
201-
"compiled_class": {
202-
"location": "/home/example/Hello.class",
203-
"checksum": "sha1$e68df795c0686e9aa1a1195536bd900f5f417b18",
204-
"class": "File",
205-
"size": 416
206-
}
210+
"compiled_class": {
211+
"location": "file:///home/example/Hello.class",
212+
"basename": "Hello.class",
213+
"class": "File",
214+
"checksum": "sha1$fdb876b40ad9ebc7fee873212e02d5940588642e",
215+
"size": 184,
216+
"path": "/home/example/Hello.class"
217+
}
207218
}
208219
```
209220

@@ -464,7 +475,7 @@ As a reminder, [`hello_world.cwl`](../introduction/quick-start.md) simply calls
464475
`echo` on a message. If we invoke `cwl-runner scatter-workflow.cwl scatter-job.yml` on the
465476
command line:
466477

467-
```bash
478+
```{code-block} console
468479
$ cwl-runner scatter-workflow.cwl scatter-job.yml
469480
[workflow scatter-workflow.cwl] start
470481
[step echo] start

0 commit comments

Comments
 (0)