Skip to content

Commit

Permalink
Merge pull request #435 from alexhsamuel/fix/output-compression
Browse files Browse the repository at this point in the history
Handle race against output compression.
  • Loading branch information
alexhsamuel authored Jan 23, 2025
2 parents 85a07d6 + 3e83ca3 commit 18820dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/apsis/service/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ async def websocket_output_updates(request, ws, run_id, output_id):
with apsis.output_update_publisher.subscription(run_id) as sub:
try:
output = apsis.outputs.get_output(run_id, output_id)
if start is not None:
if start is not None and output.compression is not None:
# Send the output data up to now.
msg = output_to_http_message(output, interval=(start, None))
await ws.send(msg)
Expand Down

0 comments on commit 18820dd

Please sign in to comment.