Skip to main content

custom_context

Synchronous context manager to set input context for tasks spawned within this block.

@contextmanager
def custom_context(**context: str): ...

Synchronous context manager to set input context for tasks spawned within this block.

Parameters​

NameTypeDescription
**contextstrKey-value pairs to set as input context.

Returns​

TypeDescription
Iterator[None]Yields control within the context block with the updated custom context applied.