mirror of https://github.com/BOINC/boinc.git
Merge pull request #2794 from BOINC/lfield-patch-1
Fix retire,abort and expire batch
This commit is contained in:
commit
ba3f9ed682
|
@ -129,7 +129,7 @@ function abort_batch($batch) {
|
|||
foreach ($wus as $wu) {
|
||||
abort_workunit($wu);
|
||||
}
|
||||
$batch->update("state=".BATCH_STATE_ABORTED);
|
||||
$batch->update("project_state=".BATCH_STATE_ABORTED);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -143,13 +143,13 @@ function retire_batch($batch) {
|
|||
"assimilate_state=".ASSIMILATE_DONE.", transition_time=$now"
|
||||
);
|
||||
}
|
||||
$batch->update("state=".BATCH_STATE_RETIRED);
|
||||
$batch->update("project_state=".BATCH_STATE_RETIRED);
|
||||
}
|
||||
|
||||
function expire_batch($batch) {
|
||||
abort_batch($batch);
|
||||
retire_batch($batch);
|
||||
$batch->update("state=".BATCH_STATE_EXPIRED);
|
||||
$batch->update("project_state=".BATCH_STATE_EXPIRED);
|
||||
}
|
||||
|
||||
function batch_state_string($state) {
|
||||
|
|
Loading…
Reference in New Issue