Simple Transfer
Highlights
In the flow definition, the WaitTime
parameter is set to 900
.
If 900 seconds (15 minutes) passes without the transfer completing, the run will fail.
Source code
{
"StartAt": "Transfer",
"States": {
"Transfer": {
"Type": "Action",
"ActionUrl": "https://transfer.actions.globus.org/transfer",
"WaitTime": 900,
"Parameters": {
"DATA": [
{
"source_path.$": "$.source.path",
"destination_path.$": "$.destination.path"
}
],
"source_endpoint.$": "$.source.id",
"destination_endpoint.$": "$.destination.id"
},
"End": true
}
}
}
{
"type": "object",
"propertyOrder": [
"source",
"destination"
],
"required": [
"source",
"destination"
],
"properties": {
"source": {
"type": "object",
"format": "globus-collection",
"required": [
"id",
"path"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"path": {
"type": "string"
}
},
"additionalProperties": false
},
"destination": {
"type": "object",
"format": "globus-collection",
"required": [
"id",
"path"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"path": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
{
"source": {
"id": "6c54cade-bde5-45c1-bdea-f4bd71dba2cc",
"path": "/~/source-directory"
},
"destination": {
"id": "31ce9ba0-176d-45a5-add3-f37d233ba47d",
"path": "/~/destination-directory"
}
}