Fixing test cases on daggyr for new polling
This commit is contained in:
@@ -1,43 +1,11 @@
|
||||
{
|
||||
"parameters": {
|
||||
"SOURCE": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"DATE": [
|
||||
"2021-01-01",
|
||||
"2021-01-02"
|
||||
]
|
||||
},
|
||||
"tasks": [
|
||||
{
|
||||
"name": "pull_data_a",
|
||||
"max_retries": 3,
|
||||
"retry_interval_seconds": 600,
|
||||
"if": "/path/to/should_pull.sh --date {{DATE}} --source {{SOURCE}}_A",
|
||||
"command": "/path/to/pull.sh --date {{DATE}} --source {{SOURCE}}_A",
|
||||
"verification_command": "/path/to/pull_verify.sh --date {{DATE}} --source {{SOURCE}}_A",
|
||||
"timeout_seconds": 30,
|
||||
"children": [
|
||||
"merge_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pull_data_b",
|
||||
"max_retries": 3,
|
||||
"retry_interval_seconds": 600,
|
||||
"if": "/path/to/should_pull.sh --date {{DATE}} --source {{SOURCE}}_B",
|
||||
"command": "/path/to/pull.sh --date {{DATE}} --source {{SOURCE}}_B",
|
||||
"verification_command": "/path/to/pull_verify.sh --date {{DATE}} --source {{SOURCE}}_B",
|
||||
"timeout_seconds": 30,
|
||||
"children": [
|
||||
"merge_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "merge_data",
|
||||
"command": "/path/to/merge.sh --left {{SOURCE}}_A --right {{SOURCE}}_B"
|
||||
}
|
||||
]
|
||||
"tag": "testdag",
|
||||
"tasks": {
|
||||
"A": { "job": { "command": [ "/usr/bin/echo", "hello" ], "cores": "1", "memoryMB": "100" }, "children": [ "b", "c", "d" ]},
|
||||
"b": { "job": { "command": [ "/usr/bin/sleep", "2" ], "cores": "1", "memoryMB": "100" }, "children": [ "d" ]},
|
||||
"c": { "job": { "command": [ "/usr/bin/echo", "hello" ], "cores": "1", "memoryMB": "100" }, "children": [ "e", "f" ]},
|
||||
"d": { "job": { "command": [ "/usr/bin/echo", "hello" ], "cores": "1", "memoryMB": "100" }, "children": [ "f" ]},
|
||||
"e": { "job": { "command": [ "/usr/bin/echo", "hello" ], "cores": "1", "memoryMB": "100" }, "children": [ "f" ]},
|
||||
"f": { "job": { "command": [ "/usr/bin/echo", "hello" ], "cores": "1", "memoryMB": "100" }}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user