2.6.9
SyncTaskCallInAsyncContextError
Package: flyte.errors
This error is raised when a sync task is invoked in a blocking way (task(...)) from inside an async
task. That call would block the event loop that drives the parent task — the same loop the runtime uses
to watch the controller for failures — so a controller/informer outage would leave the process stuck
forever. Use await task.aio(...) instead.
Parameters
class SyncTaskCallInAsyncContextError(
message: str,
)| Parameter | Type | Description |
|---|---|---|
message |
str |