[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/icecream/icecream/services
From: Stephan Kulow <coolo () kde ! org>
Date: 2004-08-30 14:06:13
Message-ID: 20040830140613.7C57625A0 () office ! kde ! org
[Download RAW message or body]
CVS commit by coolo:
if the client exited, we give the job a different state. I see lately the
effect, that the daemon misses to send the jobdone message, so this will help
to indicate the problem
M +5 -2 scheduler.cpp 1.167
--- kdenonbeta/icecream/icecream/services/scheduler.cpp #1.166:1.167
@@ -159,5 +159,5 @@ class Job {
public:
unsigned int id;
- enum {PENDING, WAITINGFORCS, COMPILING} state;
+ enum {PENDING, WAITINGFORCS, COMPILING, WAITINGFORDONE} state;
CS *server; // on which server we build
CS *submitter; // who submitted us
@@ -1100,4 +1100,5 @@ dump_job (Job *job)
: job->state == Job::WAITINGFORCS ? "WAIT"
: job->state == Job::COMPILING ? "COMP"
+ : job->state == Job::WAITINGFORDONE ? "DONE"
: "Huh?",
job->submitter ? job->submitter->nodename.c_str() : "<>",
@@ -1393,6 +1394,8 @@ handle_end (MsgChannel *c, Msg *m)
for (it = jobs.begin(); it != jobs.end(); ++it)
{
- if ( it->second->client_channel == c )
+ if ( it->second->client_channel == c ) {
it->second->client_channel = 0;
+ it->second->state = Job::WAITINGFORDONE;
+ }
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic