set buffering header to no for interstitial page response. w/ burnettk danfunk

This commit is contained in:
jasquat 2023-04-21 11:03:53 -04:00
parent 98ec512680
commit e6f875d904
1 changed files with 5 additions and 1 deletions

View File

@ -419,7 +419,11 @@ def _interstitial_stream(process_instance_id: int) -> Generator[str, Optional[st
def interstitial(process_instance_id: int) -> Response:
"""A Server Side Events Stream for watching the execution of engine tasks."""
return Response(stream_with_context(_interstitial_stream(process_instance_id)), mimetype="text/event-stream")
return Response(
stream_with_context(_interstitial_stream(process_instance_id)),
mimetype="text/event-stream",
headers={'X-Accel-Buffering': 'no'}
)
def _task_submit_shared(