2003-01-23 08:07:48 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2003-04-07 19:06:00 +00:00
|
|
|
#include "boinc_db.h"
|
2003-01-23 08:07:48 +00:00
|
|
|
#include "assimilate_handler.h"
|
2003-06-14 20:25:37 +00:00
|
|
|
#include "sched_util.h"
|
2003-01-23 08:07:48 +00:00
|
|
|
|
|
|
|
void assimilate_handler(
|
|
|
|
WORKUNIT& wu, vector<RESULT>& results, RESULT& canonical_result
|
2003-06-14 20:25:37 +00:00
|
|
|
)
|
|
|
|
{
|
|
|
|
write_log(MSG_NORMAL, "assimilating WU %s\n", wu.name);
|
2003-01-23 08:07:48 +00:00
|
|
|
if (wu.canonical_resultid) {
|
2003-06-14 20:25:37 +00:00
|
|
|
write_log(MSG_NORMAL, "canonical result:\n%s", canonical_result.xml_doc_out);
|
2003-01-23 08:07:48 +00:00
|
|
|
} else {
|
2003-06-14 20:25:37 +00:00
|
|
|
write_log(MSG_NORMAL, "no canonical result\n");
|
2003-01-23 08:07:48 +00:00
|
|
|
}
|
|
|
|
if (wu.error_mask&WU_ERROR_COULDNT_SEND_RESULT) {
|
2003-06-14 20:25:37 +00:00
|
|
|
write_log(MSG_NORMAL, "Error: couldn't send a result\n");
|
2003-01-23 08:07:48 +00:00
|
|
|
}
|
|
|
|
if (wu.error_mask&WU_ERROR_TOO_MANY_ERROR_RESULTS) {
|
2003-06-14 20:25:37 +00:00
|
|
|
write_log(MSG_NORMAL, "Error: too many error results\n");
|
2003-01-23 08:07:48 +00:00
|
|
|
}
|
|
|
|
if (wu.error_mask&WU_ERROR_TOO_MANY_RESULTS) {
|
2003-06-14 20:25:37 +00:00
|
|
|
write_log(MSG_NORMAL, "Error: too many total results\n");
|
2003-01-23 08:07:48 +00:00
|
|
|
}
|
|
|
|
}
|