Skip to content

Commit b973f06

Browse files
committed
use constant for completed states
1 parent c04c8b2 commit b973f06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

st2stream/st2stream/controllers/v1/stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import six
1717

1818
from st2common import log as logging
19+
from st2common.constants import action as action_constants
1920
from st2common.router import Response
2021
from st2common.util.jsonify import json_encode
2122
from st2common.stream.listener import get_listener
@@ -59,14 +60,13 @@ def get_all(self, end_execution_id=None, end_event=None,
5960
events = events if events else DEFAULT_EVENTS_WHITELIST
6061
action_refs = action_refs if action_refs else None
6162
execution_ids = execution_ids if execution_ids else None
62-
end_statuses = ["failed", "succeeded"]
6363

6464
def make_response():
6565
listener = get_listener(name='stream')
6666
app_iter = format(listener.generator(events=events,
6767
action_refs=action_refs,
6868
end_event=end_event,
69-
end_statuses=end_statuses,
69+
end_statuses=action_constants.LIVE_ACTION_COMPLETED_STATES,
7070
end_execution_id=end_execution_id,
7171
execution_ids=execution_ids))
7272
res = Response(headerlist=[("X-Accel-Buffering", "no"),

0 commit comments

Comments
 (0)