From cfa55b272421df3ef7239d52ee1cc73489c73f53 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 30 Mar 2005 05:15:54 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=5736 --- sched/assimilator.C | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sched/assimilator.C b/sched/assimilator.C index 634c9e35c6..460ca7c0e4 100644 --- a/sched/assimilator.C +++ b/sched/assimilator.C @@ -69,6 +69,13 @@ bool do_pass(APP& app) { while (!wu.enumerate(buf)) { vector results; // must be inside while()! + if (wu.assimilate_state != ASSIMILATE_READY) { + log_messages.printf(SCHED_MSG_LOG::CRITICAL, + "[%s] unexpected state=%d\n", wu.name, wu.assimilate_state + ); + continue; + } + // for testing purposes, pretend we did nothing // if (update_db) { @@ -92,6 +99,7 @@ bool do_pass(APP& app) { log_messages.printf(SCHED_MSG_LOG::CRITICAL, "[%s] handler returned error %d; exiting\n", wu.name, retval ); + exit(retval); } if (update_db) {