client: check for missing output files even if already NOT_PRESENT

Handles case where output file disappears during client upgrade
This commit is contained in:
David Anderson 2019-09-24 14:50:32 -07:00
parent 5e9528a3e1
commit 9e58d7cd5b
1 changed files with 10 additions and 10 deletions

View File

@ -507,16 +507,16 @@ void CLIENT_STATE::check_file_existence() {
path, fip->nbytes, size
);
}
// If an output file disappears before it's uploaded,
// flag the job as an error.
//
if (fip->status == FILE_NOT_PRESENT && fip->uploadable() && !fip->uploaded) {
RESULT* rp = file_info_to_result(fip);
if (rp) {
gstate.report_result_error(
*rp, "output file missing or invalid"
);
}
}
// If an output file disappears before it's uploaded,
// flag the job as an error.
//
if (fip->status == FILE_NOT_PRESENT && fip->uploadable() && !fip->uploaded) {
RESULT* rp = file_info_to_result(fip);
if (rp) {
gstate.report_result_error(
*rp, "output file missing or invalid"
);
}
}
}