additional file delete logic

svn path=/trunk/boinc/; revision=1061
This commit is contained in:
David Anderson 2003-03-13 23:30:45 +00:00
parent 727214d3fa
commit 03817d876f
3 changed files with 5 additions and 1 deletions

View File

@ -152,7 +152,7 @@ file_delete_state
READY
from INIT:
scheduler: got reply and server_state = OVER
timeout_check: all results are OVER
timeout_check: all results are OVER or report_deadline has passed
assimilator: all results are OVER or result is not canonical
from DONE:
scheduler: got reply and server_state = OVER

View File

@ -171,6 +171,8 @@ void handle_wu(WORKUNIT& wu) {
switch (result.server_state) {
case RESULT_SERVER_STATE_IN_PROGRESS:
if (result.report_deadline < now) {
// clean up any incomplete uploads
result.file_delete_state = FILE_DELETE_READY;
result.server_state = RESULT_SERVER_STATE_OVER;
result.outcome = RESULT_OUTCOME_NO_REPLY;
db_result_update(result);

2
todo
View File

@ -41,6 +41,8 @@ THINGS TO TEST (preferably with test scripts)
MEDIUM-PRIORITY (should do before public release)
-----------------------
decide what to do with invalid result files in upload directory
make get_local_ip_addr() work in all cases
Implement FIFO mechanism in scheduler for results that can't be sent