Skip to content

Commit f97242e

Browse files
committed
Fixed running counters. They were not properly decremented when a job was killed.
1 parent ad49e19 commit f97242e

File tree

1 file changed

+6
-0
lines changed
  • cogkit/modules/provider-coaster/resources

1 file changed

+6
-0
lines changed

cogkit/modules/provider-coaster/resources/worker.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,6 +3016,12 @@ sub killjob {
30163016
# only kill it once
30173017
delete $ASYNC_WAIT_DATA{$pid};
30183018

3019+
# decrement these here since removing the job from ASYNC_WAIT_DATA
3020+
# prevents the worker from checking the process status and thus
3021+
# updating these variables
3022+
$ASYNC_RUNNING--;
3023+
$JOBS_RUNNING--;
3024+
30193025
return $result;
30203026
}
30213027
else {

0 commit comments

Comments
 (0)