Fix retire,abort and expire batch

Fix for issue #2793
This commit is contained in:
lfield 2018-11-02 10:07:39 +01:00 committed by GitHub
parent bfe1fdd0f9
commit 0a833a34a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ function abort_batch($batch) {
foreach ($wus as $wu) { foreach ($wus as $wu) {
abort_workunit($wu); abort_workunit($wu);
} }
$batch->update("state=".BATCH_STATE_ABORTED); $batch->update("project_state=".BATCH_STATE_ABORTED);
return 0; return 0;
} }
@ -143,13 +143,13 @@ function retire_batch($batch) {
"assimilate_state=".ASSIMILATE_DONE.", transition_time=$now" "assimilate_state=".ASSIMILATE_DONE.", transition_time=$now"
); );
} }
$batch->update("state=".BATCH_STATE_RETIRED); $batch->update("project_state=".BATCH_STATE_RETIRED);
} }
function expire_batch($batch) { function expire_batch($batch) {
abort_batch($batch); abort_batch($batch);
retire_batch($batch); retire_batch($batch);
$batch->update("state=".BATCH_STATE_EXPIRED); $batch->update("project_state=".BATCH_STATE_EXPIRED);
} }
function batch_state_string($state) { function batch_state_string($state) {