comparison OTB_BandMath.R @ 1:d266345e510d draft default tip

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/OtbBandMath commit bdeb782599ab8ec92de67e81ad092defe9edd56e
author ecology
date Wed, 10 Apr 2024 16:54:49 +0000
parents 0ed34e3202b9
children
comparison
equal deleted inserted replaced
0:0ed34e3202b9 1:d266345e510d
122 } else { 122 } else {
123 print(paste("HTTP", status_code3, "Error:", resp3$status_message)) 123 print(paste("HTTP", status_code3, "Error:", resp3$status_message))
124 } 124 }
125 } else if (response2$status=="failed") { 125 } else if (response2$status=="failed") {
126 status <- "failed" 126 status <- "failed"
127 } 127 message("An error occurred. For further details, check OGC Job status through https://ospd.geolabs.fr:8300/ogc-api/jobs/", response2$jobID)
128 #else { 128 q(status = 1)
129 # attempt <- attempt +1 129 }
130 # if (attempt == 200) {
131 # status <- "failed"
132 # }
133 #}
134 } else { 130 } else {
135 status <- "failed" 131 status <- "failed"
136 print(paste("HTTP", status_code2, "Error:", resp2$status_message)) 132 print(paste("HTTP", status_code2, "Error:", resp2$status_message, "An error occurred. For further details, check OGC Job status through https://ospd.geolabs.fr:8300/ogc-api/jobs/", response2$jobID))
133 q(status = 1)
137 } 134 }
138 Sys.sleep(3) 135 Sys.sleep(3)
139 } 136 }
140 print(status) 137 print(status)
141 } else if (status_code1 == 400) { 138 } else if (status_code1 == 400) {
145 } else if (status_code1 == 500) { 142 } else if (status_code1 == 500) {
146 print("The requested URI was not found.") 143 print("The requested URI was not found.")
147 } else { 144 } else {
148 print(paste("HTTP", status_code1, "Error:", resp1$status_message)) 145 print(paste("HTTP", status_code1, "Error:", resp1$status_message))
149 } 146 }
147 }, error = function(e) {
148 message("An error occurred:", e)
149 # Exit with code 1
150 q(status = 1)
150 }) 151 })