ufcg-lsd / sebal-engine

0 stars 1 forks source link

check if swift client API is failing silently #74

Closed EsdrasVP closed 7 years ago

EsdrasVP commented 7 years ago

We had a problem related to Fetcher, where it marked images as FETCHED but not stored result files in swift. This was related to token-v3 used in swift API. The temporary solution was to create a component in SwiftAPIClient that update token after 30min of use.

But we need to investigate what exactly happens when swift upload command (from API) fails.

EsdrasVP commented 7 years ago

Swift command does not fail silently, it returns 1 in case of error. The problem was that SwiftAPIClient does not checked if process output was different than zero, so Fetcher marked image as FETCHED.

To solve this, simply put a exit value check in SwiftAPIClient.