- scheduler: log message tweaks

- Some C++ files in client had execute permissions (??).  Clear them.
This commit is contained in:
David Anderson 2012-11-07 13:50:41 -08:00 committed by Oliver Bock
parent 9fb0328d9b
commit ca652519cf
10 changed files with 32 additions and 16 deletions

View File

@ -6661,3 +6661,11 @@ David 7 Nov 2012
sched_config.cpp,h
sched_array.cpp
- remote job submission: show 20 batches, with link to show all
David 7 Nov 2012
- scheduler: log message tweaks
- Some C++ files in client had execute permissions (??). Clear them.
sched/
sched_array.cpp
sched_send.cpp

0
clientgui/sg_BoincSimpleFrame.cpp Executable file → Normal file
View File

0
clientgui/sg_PanelBase.cpp Executable file → Normal file
View File

0
clientgui/sg_PanelBase.h Executable file → Normal file
View File

0
clientgui/sg_ProjectPanel.cpp Executable file → Normal file
View File

0
clientgui/sg_ProjectPanel.h Executable file → Normal file
View File

0
clientgui/sg_TaskPanel.cpp Executable file → Normal file
View File

0
clientgui/sg_TaskPanel.h Executable file → Normal file
View File

View File

@ -491,14 +491,20 @@ void send_work_old() {
//
if (g_wreq->has_reliable_version) {
g_wreq->reliable_only = true;
if (config.debug_send) {
if (config.debug_array) {
log_messages.printf(MSG_NORMAL,
"[send] scanning for jobs that need reliable host\n"
"[array] scanning for jobs that need reliable host\n"
);
}
if (scan_work_array()) return;
g_wreq->reliable_only = false;
g_wreq->best_app_versions.clear();
} else {
if (config.debug_array) {
log_messages.printf(MSG_NORMAL,
"[array] host has no reliable app versions; skipping\n"
);
}
}
// give 2nd priority to results for a beta app
@ -507,9 +513,9 @@ void send_work_old() {
//
if (g_wreq->allow_beta_work) {
g_wreq->beta_only = true;
if (config.debug_send) {
if (config.debug_array) {
log_messages.printf(MSG_NORMAL,
"[send] host will accept beta jobs. Scanning for them.\n"
"[array] host will accept beta jobs. Scanning for them.\n"
);
}
if (scan_work_array()) return;
@ -519,9 +525,9 @@ void send_work_old() {
// give next priority to results that were infeasible for some other host
//
g_wreq->infeasible_only = true;
if (config.debug_send) {
if (config.debug_array) {
log_messages.printf(MSG_NORMAL,
"[send] Scanning for jobs that were infeasible for another host.\n"
"[array] Scanning for jobs that were infeasible for another host.\n"
);
}
if (scan_work_array()) return;
@ -531,9 +537,9 @@ void send_work_old() {
// make a pass accepting only jobs for which the client has a file
//
if (ssp->locality_sched_lite) {
if (config.debug_send) {
if (config.debug_array) {
log_messages.printf(MSG_NORMAL,
"[send] Scanning for locality sched Lite jobs.\n"
"[array] Scanning for locality sched Lite jobs.\n"
);
}
g_wreq->locality_sched_lite = true;
@ -543,9 +549,9 @@ void send_work_old() {
// end of high-priority cases. Now do general scan.
//
if (config.debug_send) {
if (config.debug_array) {
log_messages.printf(MSG_NORMAL,
"[send] doing general job scan.\n"
"[array] Scanning: general case.\n"
);
}
if (scan_work_array()) return;
@ -556,9 +562,9 @@ void send_work_old() {
if (!g_wreq->njobs_sent && g_wreq->allow_non_preferred_apps ) {
g_wreq->user_apps_only = false;
preferred_app_message_index = g_wreq->no_work_messages.size();
if (config.debug_send) {
if (config.debug_array) {
log_messages.printf(MSG_NORMAL,
"[send] scanning for jobs from non-preferred applications\n"
"[array] scanning for jobs from non-preferred applications\n"
);
}
scan_work_array();

View File

@ -111,9 +111,11 @@ void add_job_files_to_host(WORKUNIT& wu) {
if (retval) continue;
if (!fi.sticky) continue;
if (!file_present_on_host(fi.name)) {
log_messages.printf(MSG_NORMAL,
"Adding file %s to host file list\n", fi.name
);
if (config.debug_send) {
log_messages.printf(MSG_NORMAL,
"[send] Adding file %s to host file list\n", fi.name
);
}
g_request->file_infos.push_back(fi);
}
}
@ -1299,7 +1301,7 @@ int add_result_to_reply(
double est_dur = estimate_duration(wu, *bavp);
if (config.debug_send) {
log_messages.printf(MSG_NORMAL,
"[HOST#%d] Sending [RESULT#%d %s] (est. dur. %.2f seconds)\n",
"[send] [HOST#%d] sending [RESULT#%d %s] (est. dur. %.2f seconds)\n",
g_reply->host.id, result.id, result.name, est_dur
);
}