Skip to content

Commit

Permalink
Fix retire,abort and expire batch
Browse files Browse the repository at this point in the history
Fix for issue #2793
  • Loading branch information
lfield authored Nov 2, 2018
1 parent bfe1fdd commit 0a833a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html/inc/submit_util.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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) {
Expand Down

0 comments on commit 0a833a3

Please sign in to comment.