Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
filter by bad states rather than accepting only one good state
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrlee committed Mar 25, 2018
1 parent 460f985 commit 407c85b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion marathon_lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,8 @@ def get_apps(marathon, apps=[]):
task['id'])
continue

if task['state'] != 'TASK_RUNNING':
if task['state'] in ['TASK_KILLING', 'TASK_KILLED',
'TASK_FINISHED', 'TASK_ERROR']:
logger.warning("Ignoring non-running task " + task['id'] +
" with state " + task['state'])
continue
Expand Down

0 comments on commit 407c85b

Please sign in to comment.