-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
909 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"description": "An example task to test job cancellation. Cancel it please, because it runs forever", | ||
"volumes": [ | ||
"/test" | ||
], | ||
"executors": [ | ||
{ | ||
"image": "alpine", | ||
"command": [ | ||
"echo", | ||
"Nothing" | ||
] | ||
}, | ||
{ | ||
"image": "alpine", | ||
"command": [ | ||
"sh", | ||
"-c", | ||
"i=0; while true; do echo \"$i: $(date)\"; i=$((i+1)); sleep 1; done" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"outputs": [], | ||
"inputs": [], | ||
"volumes": [], | ||
"executors": [ | ||
{ | ||
"apiVersion": "batch/v1", | ||
"kind": "Job", | ||
"metadata": { | ||
"annotations": {}, | ||
"labels": { | ||
"job-type": "executor", | ||
"taskmaster-name": "task-ec104c85", | ||
"executor-no": "0" | ||
}, | ||
"name": "task-ec104c85-ex-00" | ||
}, | ||
"spec": { | ||
"template": { | ||
"metadata": { | ||
"name": "task-ec104c85-ex-00" | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"command": [ | ||
"echo", | ||
"You will see this in the logs (stdout)." | ||
], | ||
"image": "alpine", | ||
"name": "task-ec104c85-ex-00", | ||
"resources": {} | ||
} | ||
], | ||
"restartPolicy": "Never" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "batch/v1", | ||
"kind": "Job", | ||
"metadata": { | ||
"annotations": {}, | ||
"labels": { | ||
"job-type": "executor", | ||
"taskmaster-name": "task-ec104c85", | ||
"executor-no": "1" | ||
}, | ||
"name": "task-ec104c85-ex-01" | ||
}, | ||
"spec": { | ||
"template": { | ||
"metadata": { | ||
"name": "task-ec104c85-ex-01" | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"command": [ | ||
"sh", | ||
"-c", | ||
"exit 1" | ||
], | ||
"image": "alpine", | ||
"name": "task-ec104c85-ex-01", | ||
"resources": {} | ||
} | ||
], | ||
"restartPolicy": "Never" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "batch/v1", | ||
"kind": "Job", | ||
"metadata": { | ||
"annotations": {}, | ||
"labels": { | ||
"job-type": "executor", | ||
"taskmaster-name": "task-ec104c85", | ||
"executor-no": "2" | ||
}, | ||
"name": "task-ec104c85-ex-02" | ||
}, | ||
"spec": { | ||
"template": { | ||
"metadata": { | ||
"name": "task-ec104c85-ex-02" | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"command": [ | ||
"echo", | ||
"This shouldn't appear in the logs (stdout)." | ||
], | ||
"image": "alpine", | ||
"name": "task-ec104c85-ex-02", | ||
"resources": {} | ||
} | ||
], | ||
"restartPolicy": "Never" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"resources": { | ||
"disk_gb": 0.1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"outputs": [], | ||
"inputs": [], | ||
"volumes": [], | ||
"executors": [ | ||
{ | ||
"apiVersion": "batch/v1", | ||
"kind": "Job", | ||
"metadata": { | ||
"annotations": {}, | ||
"labels": { | ||
"job-type": "executor", | ||
"taskmaster-name": "task-23bf5e64", | ||
"executor-no": "0" | ||
}, | ||
"name": "task-23bf5e64-ex-00" | ||
}, | ||
"spec": { | ||
"template": { | ||
"metadata": { | ||
"name": "task-23bf5e64-ex-00" | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"command": [ | ||
"sh", | ||
"-c", | ||
"exit 1" | ||
], | ||
"image": "alpine", | ||
"name": "task-23bf5e64-ex-00", | ||
"resources": {} | ||
} | ||
], | ||
"restartPolicy": "Never" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"resources": { | ||
"disk_gb": 0.1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"outputs": [], | ||
"inputs": [ | ||
{ | ||
"url": "http://nonexistent.ebi.ac.uk", | ||
"path": "/somewhere/file", | ||
"type": "FILE" | ||
} | ||
], | ||
"volumes": [], | ||
"executors": [ | ||
{ | ||
"apiVersion": "batch/v1", | ||
"kind": "Job", | ||
"metadata": { | ||
"annotations": {}, | ||
"labels": { | ||
"job-type": "executor", | ||
"taskmaster-name": "task-7ff304bd", | ||
"executor-no": "0" | ||
}, | ||
"name": "task-7ff304bd-ex-00" | ||
}, | ||
"spec": { | ||
"template": { | ||
"metadata": { | ||
"name": "task-7ff304bd-ex-00" | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"command": [ | ||
"echo", | ||
"This shouldn't appear in the logs." | ||
], | ||
"image": "alpine", | ||
"name": "task-7ff304bd-ex-00", | ||
"resources": {} | ||
} | ||
], | ||
"restartPolicy": "Never" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "batch/v1", | ||
"kind": "Job", | ||
"metadata": { | ||
"annotations": {}, | ||
"labels": { | ||
"job-type": "executor", | ||
"taskmaster-name": "task-7ff304bd", | ||
"executor-no": "1" | ||
}, | ||
"name": "task-7ff304bd-ex-01" | ||
}, | ||
"spec": { | ||
"template": { | ||
"metadata": { | ||
"name": "task-7ff304bd-ex-01" | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"command": [ | ||
"cat", | ||
"/somewhere/file" | ||
], | ||
"image": "alpine", | ||
"name": "task-7ff304bd-ex-01", | ||
"resources": {} | ||
} | ||
], | ||
"restartPolicy": "Never" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"resources": { | ||
"disk_gb": 0.1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"description": "Demonstrates inlined input", | ||
"inputs": [ | ||
{ | ||
"content": "ABC TESK and some more text.", | ||
"path": "/tes/volumes/input", | ||
"type": "FILE" | ||
} | ||
], | ||
"executors": [ | ||
{ | ||
"image": "alpine", | ||
"command": [ | ||
"cat", | ||
"/tes/volumes/input" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"description": "2 different folders with filename collision, mounted to the same place. The latest one wins (das in our case)", | ||
"inputs": [ | ||
{ | ||
"url": "ftp://ftp.ebi.ac.uk/pub/databases/16S_RNA/README", | ||
"path": "/tes/files/rna_README", | ||
"type": "FILE" | ||
}, | ||
{ | ||
"url": "ftp://ftp.ebi.ac.uk/pub/software/das/README", | ||
"path": "/tes/files/das_README", | ||
"type": "FILE" | ||
}, | ||
{ | ||
"url": "ftp://ftp.ebi.ac.uk/pub/databases/16S_RNA", | ||
"path": "/tes", | ||
"type": "DIRECTORY" | ||
}, | ||
{ | ||
"url": "ftp://ftp.ebi.ac.uk/pub/software/das", | ||
"path": "/tes", | ||
"type": "DIRECTORY" | ||
} | ||
], | ||
"executors": [ | ||
{ | ||
"image": "ubuntu", | ||
"command": [ | ||
"sh", | ||
"-c", | ||
"cd /tes; find * -name \"*README\" -print0 | du --files0-from=- -b" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"description": "Placing a file at a location (/tes/README), that is colliding with a file from directory input. The latest one wins (das in our case)", | ||
"inputs": [ | ||
{ | ||
"url": "ftp://ftp.ebi.ac.uk/pub/databases/16S_RNA/README", | ||
"path": "/tes/files/rna_README", | ||
"type": "FILE" | ||
}, | ||
{ | ||
"url": "ftp://ftp.ebi.ac.uk/pub/software/das/README", | ||
"path": "/tes/files/das_README", | ||
"type": "FILE" | ||
}, | ||
{ | ||
"url": "ftp://ftp.ebi.ac.uk/pub/databases/16S_RNA/README", | ||
"path": "/tes/README", | ||
"type": "FILE" | ||
}, | ||
{ | ||
"url": "ftp://ftp.ebi.ac.uk/pub/software/das", | ||
"path": "/tes", | ||
"type": "DIRECTORY" | ||
} | ||
], | ||
"executors": [ | ||
{ | ||
"image": "ubuntu", | ||
"command": [ | ||
"sh", | ||
"-c", | ||
"cd /tes; find * -name \"*README\" -print0 | du --files0-from=- -b" | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.