Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
fix: remove b-prefix in background task events function
Browse files Browse the repository at this point in the history
  • Loading branch information
lizable committed Feb 4, 2021
1 parent 02ebb0d commit 2222c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/394.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove b-prefix in "push_background_task_events" function
2 changes: 1 addition & 1 deletion src/ai/backend/gateway/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ async def push_background_task_events(
}
await resp.send(json.dumps(body), event=f"task_{task_info['status']}")
finally:
await resp.send(b'{}', event="server_close")
await resp.send('{}', event="server_close")
return resp

# It is an ongoing task.
Expand Down

0 comments on commit 2222c42

Please # to comment.