Skip to content

Commit

Permalink
scheduler: locality scheduler: don't send work if the respected app i…
Browse files Browse the repository at this point in the history
…s deselected
  • Loading branch information
bema-aei committed Jun 5, 2014
1 parent 6246159 commit 6643d54
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sched/sched_locality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,13 @@ static int possibly_send_result(SCHED_DB_RESULT& result) {
retval = wu.lookup_id(result.workunitid);
if (retval) return ERR_DB_NOT_FOUND;

// This doesn't take into account g_wreq->allow_non_preferred_apps,
// however Einstein@Home, which is the only project that currently uses
// this locality scheduler, doesn't support the respective project-specific
// preference setting
//
if (app_not_selected(wu)) return ERR_NO_APP_VERSION;

bavp = get_app_version(wu, true, false);

if (!config.locality_scheduler_fraction && !bavp && is_anonymous(g_request->platforms.list[0])) {
Expand Down Expand Up @@ -1207,7 +1214,7 @@ void send_work_locality() {

if (!work_needed(true)) break;
FILE_INFO& fi = g_request->file_infos[k];
retval_srff=send_results_for_file(
retval_srff = send_results_for_file(
fi.name, nsent, false
);

Expand Down

0 comments on commit 6643d54

Please sign in to comment.