scheduler: improve error handling on upload