mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-01 07:00:13 -05:00
Feat: Handle unicode error, fix OTel error capturing (#1959)
* feat: raise illegal task output error out of the runner if we get a null unicode escape sequence * feat: add helper for sanitizing outputs * feat: improve error * fix: lock index * feat: use async stream method in example * chore: ver * chore: changelog * fix: turns out we don't need to lock * fix: return exception for instrumentation * chore: changelog * chore: bunch of generated crap * fix: comment placement * fix: copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -28,7 +28,7 @@ async def stream_task(input: EmptyModel, ctx: Context) -> None:
|
||||
await asyncio.sleep(2)
|
||||
|
||||
for chunk in chunks:
|
||||
ctx.put_stream(chunk)
|
||||
await ctx.aio_put_stream(chunk)
|
||||
await asyncio.sleep(0.20)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user