Skip to content

Commit

Permalink
fix(runner): only check for errors when a task is no longer running
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 27, 2024
1 parent a0391c3 commit e02c5b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/lazy/manage/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ function Runner:_start()
local is_running = s.task and s.task:is_running()
local step = self._pipeline[s.step]

if is_running then
-- still running
active = active + 1
-- selene:allow(empty_if)
if s.task and s.task:has_errors() then
elseif s.task and s.task:has_errors() then
-- don't continue tasks if there are errors
elseif step and step.task == "wait" and not resume then
-- waiting for sync
waiting = waiting + 1
wait_step = s.step
elseif is_running then
-- still running
active = active + 1
else
next[#next + 1] = name
end
Expand Down

0 comments on commit e02c5b1

Please sign in to comment.