-
Notifications
You must be signed in to change notification settings - Fork 1
/
flow_definition.json
90 lines (90 loc) · 2.87 KB
/
flow_definition.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"Comment": "Transfer and run Tomopy",
"StartAt": "FacilityChoice",
"States": {
"FacilityChoice": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.input.compute_site",
"StringEquals": "ALCF",
"Next": "ALCFConfig"
}
],
"Default": "NERSCConfig"
},
"ALCFConfig": {
"Type": "Pass",
"Parameters": {
"site.$": "$.input.compute_configs.ALCF"
},
"ResultPath": "$.input.compute",
"Next": "TransferInput"
},
"NERSCConfig": {
"Type": "Pass",
"Parameters": {
"site.$": "$.input.compute_configs.NERSC"
},
"ResultPath": "$.input.compute",
"Next": "TransferInput"
},
"TransferInput": {
"Comment": "Transfer input file",
"Type": "Action",
"ActionUrl": "https://actions.automate.globus.org/transfer/transfer",
"Parameters": {
"source_endpoint_id.$": "$.input.source.id",
"destination_endpoint_id.$": "$.input.compute.site.transfer_endpoint",
"transfer_items": [
{
"source_path.=": "`$.input.source.path` + `$.input.input_filename`",
"destination_path.=": "`$.input.compute.site.staging_path` + `$.input.input_filename`",
"recursive": false
}
]
},
"ResultPath": "$.TransferInput",
"WaitTime": 300,
"Next": "Tomopy"
},
"Tomopy": {
"Comment": "Perform Tomopy analysis",
"Type": "Action",
"ActionUrl": "https://compute.actions.globus.org/fxap",
"Parameters": {
"endpoint.$": "$.input.compute.site.compute_endpoint",
"function.$": "$.input.compute_function_id",
"kwargs": {
"save_folder.$": "$.input.compute.site.output_path",
"collection_path.$": "$.input.compute.site.collection_path",
"filename.=": "`$.input.compute.site.collection_path` + `$.input.compute.site.staging_path` + `$.input.input_filename`",
"command.$": "$.input.compute_function_kwargs.command",
"reconstruction_type.$": "$.input.compute_function_kwargs.reconstruction_type"
}
},
"ResultPath": "$.TomopyOutput",
"WaitTime": 600,
"Next": "TransferResults"
},
"TransferResults": {
"Comment": "Transfer results",
"Type": "Action",
"ActionUrl": "https://actions.automate.globus.org/transfer/transfer",
"Parameters": {
"source_endpoint_id.$": "$.input.compute.site.transfer_endpoint",
"destination_endpoint_id.$": "$.input.source.id",
"transfer_items": [
{
"source_path.$": "$.TomopyOutput.details.result[0][1]",
"destination_path.=": "`$.input.result_path` + `$.TomopyOutput.details.result[0][0]`",
"recursive": false
}
]
},
"ResultPath": "$.TransferFiles",
"WaitTime": 300,
"End": true
}
}
}