aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/jsonnet/wordcount_golden.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/jsonnet/wordcount_golden.json')
-rw-r--r--examples/jsonnet/wordcount_golden.json53
1 files changed, 53 insertions, 0 deletions
diff --git a/examples/jsonnet/wordcount_golden.json b/examples/jsonnet/wordcount_golden.json
new file mode 100644
index 0000000000..25d99cf3ab
--- /dev/null
+++ b/examples/jsonnet/wordcount_golden.json
@@ -0,0 +1,53 @@
+{
+ "wordcount": {
+ "jobs": {
+ "count": {
+ "command": "uniq -c /tmp/sorted_tokens > /tmp/counts",
+ "deps": [
+ ":sort"
+ ],
+ "inputs": [
+ "/tmp/sorted_tokens"
+ ],
+ "outputs": [
+ "/tmp/counts"
+ ],
+ "type": "sh",
+ "vars": { }
+ },
+ "sort": {
+ "command": "sort /tmp/tokens > /tmp/sorted_tokens",
+ "deps": [
+ ":tokenize"
+ ],
+ "inputs": [
+ "/tmp/tokens"
+ ],
+ "outputs": [
+ "/tmp/sorted_tokens"
+ ],
+ "type": "sh",
+ "vars": { }
+ },
+ "tokenize": {
+ "command": "tr ' ' '\n' < /tmp/passage_test > /tmp/tokens",
+ "deps": [ ],
+ "inputs": [
+ "/tmp/passage_test"
+ ],
+ "outputs": [
+ "/tmp/tokens"
+ ],
+ "type": "sh",
+ "vars": { }
+ }
+ },
+ "retries": 12,
+ "schedule": {
+ "repeat_frequency": 1,
+ "repeat_type": "week",
+ "start_date": "2015-11-15",
+ "start_time": "17:30"
+ }
+ }
+}