{"_id":"571fa2eadb52d01700f5cf29","editedParams":true,"version":{"_id":"55faeacad0e22017005b8268","project":"55faeacad0e22017005b8265","__v":32,"createdAt":"2015-09-17T16:31:06.800Z","releaseDate":"2015-09-17T16:31:06.800Z","categories":["55faeacbd0e22017005b8269","55faf550764f50210095078e","55faf5b5626c341700fd9e96","55faf8a7825d5f19001fa386","560052f91503430d007cc88f","560054f73aa0520d00da0b1a","56005aaf6932a00d00ba7c62","56005c273aa0520d00da0b3f","5601ae7681a9670d006d164d","5601ae926811d00d00ceb487","5601aeb064866b1900f4768d","5601aee850ee460d0002224c","5601afa02499c119000faf19","5601afd381a9670d006d1652","561d4c78281aec0d00eb27b6","561d588d8ca8b90d00210219","563a5f934cc3621900ac278c","5665c5763889610d0008a29e","566710a36819320d000c2e93","56ddf6df8a5ae10e008e3926","56e1c96b2506700e00de6e83","56e1ccc4e416450e00b9e48c","56e1ccdfe63f910e00e59870","56e1cd10bc46be0e002af26a","56e1cd21e416450e00b9e48e","56e3139a51857d0e008e77be","573b4f62ef164e2900a2b881","57c9d1335fd8ca0e006308ed","57e2bd9d1e7b7220000d7fa5","57f2b992ac30911900c7c2b6","58adb5c275df0f1b001ed59b","58c81b5c6dc7140f003c3c46"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"v1","version_clean":"1.0.0","version":"1"},"category":{"_id":"5601aee850ee460d0002224c","__v":20,"project":"55faeacad0e22017005b8265","version":"55faeacad0e22017005b8268","pages":["56023786930fe1170074bd2c","561d53a09463520d00cd11ef","561d546d31d9630d001eb5d1","561d54af31d9630d001eb5d3","561d54e56386060d00e0601e","561d554d9463520d00cd11f2","564246059f4ed50d008be1af","5643712a0d9748190079defb","564372751ecf381700343c1e","5643742008894c0d00031ed3","5643747a0d9748190079df01","564375c988f3a60d00ac86b0","56437d0f0d9748190079df13","56437e83f49bfa0d002f560a","56437f7d0d9748190079df15","5643810508894c0d00031ef5","5643826f88f3a60d00ac86cb","564382de88f3a60d00ac86ce","56e07ba14685db1700d94873","56e08c9b903c7a29001d5352"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-22T19:41:28.703Z","from_sync":false,"order":7,"slug":"tasks-and-workflows-guide","title":"Tasks and Workflows Guide"},"project":"55faeacad0e22017005b8265","__v":0,"editedParams2":true,"parentDoc":null,"user":"55fae9d4825d5f19001fa379","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-26T17:18:34.921Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"https://geobigdata.io/workflows/v1/workflows/4319343759119412532/tasks/4319343759114673547/stdout","language":"text"}]},"method":"get","results":{"codes":[{"name":"","code":"<empty>","language":"json","status":200}]},"settings":"5601fdaa1ba3720d00a6b981","auth":"required","params":[{"_id":"571fa2eadb52d01700f5cf2b","ref":"","in":"path","required":true,"desc":"numeric value, workflow_id","default":"","type":"string","name":"workflow_id"},{"_id":"571fa2eadb52d01700f5cf2a","ref":"","in":"path","required":true,"desc":"numeric value, task_id","default":"","type":"string","name":"task_id"}],"url":"/workflows/v1/workflows/:workflow_id/tasks/:task_id/stdout"},"isReference":false,"order":19,"body":"[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"parameter\",\n    \"h-1\": \"description\",\n    \"0-0\": \"workflow_id\",\n    \"0-1\": \"The numeric id given to a workflow once it's been run. Find it at the bottom of a \\\"submit a workflow\\\" or workflow status and workflow events response.\",\n    \"1-0\": \"task_id\",\n    \"1-1\": \"The number id given to a task that's part of a workflow. Look for id in task description in the \\\"submit a workflow\\\" or workflow status and workflow events response.\"\n  },\n  \"cols\": 2,\n  \"rows\": 2\n}\n[/block]\nThis is a sample response from a \"Get Workflow status\" request. The task_id and workflow_id are shown in red. \n\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/ZJjk7W6GTDqYawrI0srh_wrokflow_status_response.png\",\n        \"wrokflow_status_response.png\",\n        \"577\",\n        \"604\",\n        \"#413ae9\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n## STDOUT Responses\n\nResponse: 200 OK\nResponse body contains the STDOUT from the Docker container that ran the task. \nWhen there is no data, the request will return \"empty.\n\nThis is another example of an STDOUT output:\n\nGET: https://geobigdata.io/workflows/v1/workflows/4238412131064055622/tasks/4238412131057043184/stdout\n\nResponse:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"inputImageDir = /mnt/work/input/input_image/054619420020_01\\nfileTif = /mnt/work/input/input_image/054619420020_01/054619420020_01_assembly.tif\\n############ FILES #############\\n################################\\nparameters:\\n{'village_boundary_scale': u'30', 'population_resolution': u'50', 'daouzek_area_bounds': u'60 1000', u'parameter_set': u'desert', 'population_compute': u'false', 'daouzek_results_type': u'confidence', 'daouzek_threshold': u'700', 'daouzek_imp_threshold': u'40 255', 'daouzek_fuse_type': u'rgbmax', 'village_use_bue': u'true', 'run_cloud_mask': u'true', 'daouzek_centroids': u'true'}\\nWriting parameters to: /mnt/work/output/log/params.sh\\nInput file size is 8480, 7283\\n0...10...20...30...40...50...60...70...80...90...100 - done.\\nMAXF finsished reading\\n0...10...20...30...40...50...60...70...80...90...100 - done.\\nCreating output /mnt/work/output/imagery/054619420020_01_assembly_bue.json of format GeoJSON.\\n0...10...20...30...40...50...60...70...80...90...100 - done.\\n/mnt/work/output/imagery/annot_tmp.json\\n/mnt/work/output/imagery/054619420020_01_assembly_bue_annot.json\\n[(0, (inf, 10000.0)), (1, (10000.0, 5000.0)), (2, (5000.0, 2500.0)), (3, (2500.0, 1000.0)), (4, (1000.0, 0.0))]\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"Retrieve STDOUT output from a completed task in a workflow","slug":"stdout-output-from-a-workflow-task","type":"endpoint","title":"STDOUT output from a workflow task"}

getSTDOUT output from a workflow task

Retrieve STDOUT output from a completed task in a workflow

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

workflow_id:
required
string
numeric value, workflow_id
task_id:
required
string
numeric value, task_id

Examples


Result Format


Documentation

[block:parameters] { "data": { "h-0": "parameter", "h-1": "description", "0-0": "workflow_id", "0-1": "The numeric id given to a workflow once it's been run. Find it at the bottom of a \"submit a workflow\" or workflow status and workflow events response.", "1-0": "task_id", "1-1": "The number id given to a task that's part of a workflow. Look for id in task description in the \"submit a workflow\" or workflow status and workflow events response." }, "cols": 2, "rows": 2 } [/block] This is a sample response from a "Get Workflow status" request. The task_id and workflow_id are shown in red. [block:image] { "images": [ { "image": [ "https://files.readme.io/ZJjk7W6GTDqYawrI0srh_wrokflow_status_response.png", "wrokflow_status_response.png", "577", "604", "#413ae9", "" ] } ] } [/block] ## STDOUT Responses Response: 200 OK Response body contains the STDOUT from the Docker container that ran the task. When there is no data, the request will return "empty. This is another example of an STDOUT output: GET: https://geobigdata.io/workflows/v1/workflows/4238412131064055622/tasks/4238412131057043184/stdout Response: [block:code] { "codes": [ { "code": "inputImageDir = /mnt/work/input/input_image/054619420020_01\nfileTif = /mnt/work/input/input_image/054619420020_01/054619420020_01_assembly.tif\n############ FILES #############\n################################\nparameters:\n{'village_boundary_scale': u'30', 'population_resolution': u'50', 'daouzek_area_bounds': u'60 1000', u'parameter_set': u'desert', 'population_compute': u'false', 'daouzek_results_type': u'confidence', 'daouzek_threshold': u'700', 'daouzek_imp_threshold': u'40 255', 'daouzek_fuse_type': u'rgbmax', 'village_use_bue': u'true', 'run_cloud_mask': u'true', 'daouzek_centroids': u'true'}\nWriting parameters to: /mnt/work/output/log/params.sh\nInput file size is 8480, 7283\n0...10...20...30...40...50...60...70...80...90...100 - done.\nMAXF finsished reading\n0...10...20...30...40...50...60...70...80...90...100 - done.\nCreating output /mnt/work/output/imagery/054619420020_01_assembly_bue.json of format GeoJSON.\n0...10...20...30...40...50...60...70...80...90...100 - done.\n/mnt/work/output/imagery/annot_tmp.json\n/mnt/work/output/imagery/054619420020_01_assembly_bue_annot.json\n[(0, (inf, 10000.0)), (1, (10000.0, 5000.0)), (2, (5000.0, 2500.0)), (3, (2500.0, 1000.0)), (4, (1000.0, 0.0))]", "language": "json" } ] } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}