Skip to content

Commit c3379f6

Browse files
committed
Revert "use constant for completed states"
This reverts commit b973f06.
1 parent b973f06 commit c3379f6

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,7 +16,6 @@
1616
import six
1717

1818
from st2common import log as logging
19-
from st2common.constants import action as action_constants
2019
from st2common.router import Response
2120
from st2common.util.jsonify import json_encode
2221
from st2common.stream.listener import get_listener
@@ -60,13 +59,14 @@ def get_all(self, end_execution_id=None, end_event=None,
6059
events = events if events else DEFAULT_EVENTS_WHITELIST
6160
action_refs = action_refs if action_refs else None
6261
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=action_constants.LIVE_ACTION_COMPLETED_STATES,
69+
end_statuses=end_statuses,
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)