From 802e6eb720430f8f29c589a0b42a59417d94619c Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 19 Oct 2018 10:24:31 +0100 Subject: [PATCH] Add TODO --- src/python/pants/engine/scheduler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python/pants/engine/scheduler.py b/src/python/pants/engine/scheduler.py index 9ba3d998b5b..34378c55927 100644 --- a/src/python/pants/engine/scheduler.py +++ b/src/python/pants/engine/scheduler.py @@ -538,6 +538,8 @@ def products_request(self, products, subjects): if throw_root_states: unique_exceptions = tuple({t.exc for t in throw_root_states}) + # TODO: consider adding a new top-level function adjacent to products_request used for running console tasks, + # so that this code doesn't need to exist in this form. if len(unique_exceptions) == 1 and isinstance(unique_exceptions[0], GracefulTerminationException): raise unique_exceptions[0]