#include #include "boinc_db.h" #include "assimilate_handler.h" #include "sched_util.h" void assimilate_handler( WORKUNIT& wu, vector& results, RESULT& canonical_result ) { ScopeMessages scope_messages(log_messages, SchedMessages::NORMAL); scope_messages.printf("[%s] Assimilating\n", wu.name); if (wu.canonical_resultid) { scope_messages.printf("[%s] Found canonical result\n", wu.name); log_messages.printf_multiline(SchedMessages::DEBUG, canonical_result.xml_doc_out, "[%s] canonical result", wu.name); } else { scope_messages.printf("[%s] No canonical result\n", wu.name); } if (wu.error_mask&WU_ERROR_COULDNT_SEND_RESULT) { log_messages.printf(SchedMessages::CRITICAL, "[%s] Error: couldn't send a result\n", wu.name); } if (wu.error_mask&WU_ERROR_TOO_MANY_ERROR_RESULTS) { log_messages.printf(SchedMessages::CRITICAL, "[%s] Error: too many error results\n", wu.name); } if (wu.error_mask&WU_ERROR_TOO_MANY_RESULTS) { log_messages.printf(SchedMessages::CRITICAL, "[%s] Error: too many total results\n", wu.name); } }