Skip to content
This repository was archived by the owner on Feb 20, 2020. It is now read-only.

Commit 424249f

Browse files
committed
exit if remainingTasks is less than 0 (vs just 0)
1 parent f92049b commit 424249f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ func RunWorker() (exitCode ExitCode) {
510510
remainingTaskCountText = fmt.Sprintf(" (will exit after resolving %v more)", remainingTasks)
511511
}
512512
log.Printf("Resolved %v tasks in total so far%v.", tasksResolved, remainingTaskCountText)
513-
if remainingTasks == 0 {
513+
if remainingTasks <= 0 {
514514
log.Printf("Completed all task(s) (number of tasks to run = %v)", config.NumberOfTasksToRun)
515515
if deploymentIDUpdated() {
516516
return NONCURRENT_DEPLOYMENT_ID

0 commit comments

Comments
 (0)