Skip to content

Commit

Permalink
Merge pull request #3451 from BOINC/dpa_template_cleanup
Browse files Browse the repository at this point in the history
Remote job submission: delete output template file on retire batch
  • Loading branch information
TheAspens committed Feb 6, 2020
2 parents c5695e4 + 81b054b commit b7a0168
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions html/inc/submit_util.inc
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ function retire_batch($batch) {
$wu->update(
"assimilate_state=".ASSIMILATE_DONE.", transition_time=$now"
);
// remove output template if it's a temporary
//
if (strstr($wu->result_template_file, "templates/tmp/")) {
@unlink($wu->result_template_file);
}
}
$batch->update("state=".BATCH_STATE_RETIRED);
}
Expand Down

0 comments on commit b7a0168

Please sign in to comment.