Skip to content

Commit

Permalink
Fix for powstream leak issue when powstream is unable to connect to o…
Browse files Browse the repository at this point in the history
…ther end. The line removed was a special case for a special case in an old version of pscheduler
  • Loading branch information
arlake228 committed Sep 3, 2024
1 parent 3276bcd commit 5a04fd8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,8 @@ def _evaluate_task(self, tmap, need_new_task, new_start_time):
if ((not old_task['task'].detail_exclusive()) #not exclusive
and old_task['task'].detail_multiresult() #is multi-result
and (old_task_start_ts + 15*60) < int(time.time()) #started at least 15 min ago
and (
(old_task['task'].detail_runs_started() is not None and (old_task['task'].detail_runs_started()== 0)) #have at no runs started (v1.1 and later)
or (old_task['task'].detail_runs_started() is not None and (old_task['task'].detail_runs() <= 2)) #have less than two runs (not 1 because count bugged) (pre-v1.1)
)):
and (old_task['task'].detail_runs_started() is not None and (old_task['task'].detail_runs_started()== 0)) #no runs started
):

#if background-multi, one or less runs and start time is 15 minutes (arbitrary)
# in the past the start time is immediately. Fixes special cases where bgm
Expand Down

0 comments on commit 5a04fd8

Please sign in to comment.