scheduler: fix possible bug if use assigned jobs with FCGI scheduler

Need to end the enumeration.
This commit is contained in:
David Anderson 2015-04-27 10:10:32 -07:00
parent cc6e2f573e
commit 1c6267f2f1
3 changed files with 10 additions and 4 deletions

View File

@ -16,6 +16,9 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
// DEPRECATED - WON'T WORK.
// result.claimed_credit is not used any more
// Award credit to users/hosts/teams for WU which have been
// cancelled or have otherwise failed (error_mask != 0).
// Credit granted is credit claimed, with a hardwired limit of 300 units.

View File

@ -256,7 +256,10 @@ bool send_jobs(int assign_type) {
}
while (!asg.enumerate(query)) {
if (!work_needed(false)) continue;
if (!work_needed(false)) {
asg.end_enumerate();
break;
}
// if the WU doesn't exist, delete the assignment record.
//

View File

@ -1,6 +1,6 @@
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
// Copyright (C) 2015 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
@ -15,10 +15,10 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
// job dispatch using a score-based approach. See sched_scure.cpp
// job dispatch using a score-based approach. See sched_score.cpp
struct JOB {
int index;
int index; // index into shared-mem job array
int result_id;
double score;
APP* app;