mirror of https://github.com/BOINC/boinc.git
Updated comments about states.
svn path=/trunk/boinc/; revision=1591
This commit is contained in:
parent
9df3ec9909
commit
930b843682
|
@ -296,6 +296,10 @@ struct WORKUNIT {
|
||||||
void clear();
|
void clear();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// WARNING: be Very careful about changing any states, especially for a
|
||||||
|
// project already running - these values are entered into the database and
|
||||||
|
// must stay consistent.
|
||||||
|
|
||||||
#define RESULT_SERVER_STATE_INACTIVE 1
|
#define RESULT_SERVER_STATE_INACTIVE 1
|
||||||
#define RESULT_SERVER_STATE_UNSENT 2
|
#define RESULT_SERVER_STATE_UNSENT 2
|
||||||
#define RESULT_SERVER_STATE_UNSENT_SEQ 3
|
#define RESULT_SERVER_STATE_UNSENT_SEQ 3
|
||||||
|
@ -311,6 +315,8 @@ struct WORKUNIT {
|
||||||
#define RESULT_OUTCOME_CLIENT_ERROR 3
|
#define RESULT_OUTCOME_CLIENT_ERROR 3
|
||||||
#define RESULT_OUTCOME_NO_REPLY 4
|
#define RESULT_OUTCOME_NO_REPLY 4
|
||||||
#define RESULT_OUTCOME_DIDNT_NEED 5
|
#define RESULT_OUTCOME_DIDNT_NEED 5
|
||||||
|
// we created the result but didn't need to send it because we already
|
||||||
|
// got a quorum
|
||||||
|
|
||||||
#define VALIDATE_STATE_INIT 0
|
#define VALIDATE_STATE_INIT 0
|
||||||
#define VALIDATE_STATE_VALID 1
|
#define VALIDATE_STATE_VALID 1
|
||||||
|
@ -322,14 +328,11 @@ struct RESULT {
|
||||||
int workunitid;
|
int workunitid;
|
||||||
int server_state; // see above
|
int server_state; // see above
|
||||||
int outcome; // see above; defined if server state OVER
|
int outcome; // see above; defined if server state OVER
|
||||||
int client_state; // phase when client error happened
|
int client_state; // phase that client contacted us in.
|
||||||
// (download, compute, upload)
|
// iff it is UPLOADED then outcome is success.
|
||||||
// Defined if outcome is CLIENT_ERROR
|
// error details are in stderr_out.
|
||||||
// and error details are in stderr_out
|
// The values for this field are defined
|
||||||
// the values for this field are defined
|
// in lib/result_state.h
|
||||||
// in sched/server_types.h and
|
|
||||||
// in client/client_types.h,
|
|
||||||
// they are the same.
|
|
||||||
int hostid; // host processing this result
|
int hostid; // host processing this result
|
||||||
unsigned int report_deadline; // deadline for receiving result
|
unsigned int report_deadline; // deadline for receiving result
|
||||||
unsigned int sent_time; // when result was sent to host
|
unsigned int sent_time; // when result was sent to host
|
||||||
|
|
Loading…
Reference in New Issue