prefect.concurrency.v1.context

Classes

ConcurrencyContext

Methods:

get

get(cls: type[Self]) -> Optional[Self]
Get the current context instance

model_copy

model_copy(self: Self) -> Self
Duplicate the context model, optionally choosing which fields to include, exclude, or change. Returns:
  • A new model instance.

serialize

serialize(self, include_secrets: bool = True) -> dict[str, Any]
Serialize the context model to a dictionary that can be pickled with cloudpickle.