ufcg-lsd / sebal-engine

0 stars 1 forks source link

Remove garbage from swift when necessary #52

Closed EsdrasVP closed 7 years ago

EsdrasVP commented 8 years ago

When Fetcher fails to upload all files to swift, some garbage is left in containter. To fix this, Fetcher must delete uploaded images when transfer stops in the middle of the process.

thiagomanel commented 8 years ago

I did not see the code yet but, in many cases, it is useful to adding a garbage check when the component is started (note that, some failures crash the component, thus we are not able to do the garbage collection)

EsdrasVP commented 8 years ago

0ac798b95b541d1351c1e79d97aa7e143f6d1c2e

EsdrasVP commented 8 years ago

The current delete method uses a process builder with a call to openstack CLI. But current implementation in Fetcher of JOSS swift client might have some useful code for this purpose.