Closed Skippern closed 2 years ago
Hmmm ... a log file could be added also you can look into some files like: index_write so you can know what was uploaded or where was stoped. Also the script use this file to know were to begin if there was a problem or the script was stoped
but it would be rather easy for you to add sys.exit(1)
if the upload isn't completed, that way I wouldn't need to do multiple checks, though I guess if [ 'ls *jpg | wc -l' -gt 'cat index_write.txt | wc -l' ]
or something along that line could work for now.
👍 Thanks for this idea. In next commits i would add this.
I'll wait your solution instead of altering the script. Thanks
@Skippern Can you check now the scripts? I've made some improvements and any feedback is welcomed.
@bogdan-telenav I have no time to record at the moment, I will look at having some new traces recorded end of this month, and try the script again.
@Skippern Not a problem. Thanks again for everything.
We made major changes to the previous scripts. So this must be re-fixed for the current version.
This issue is no longer active i will close it.
The scripts are exiting with status
0
on completion, even when uploads have failed. This makes it complicated to run scripts, or verify long sequences. If sequence have not been completely uploaded, the script should return any number but0