_CheckpointDefinition
Callable wrapper returned by @checkpoint.
Functions
func__init__(self, func, *, retries, checkpoint_type) -> NoneInitialize a Kitaru checkpoint wrapper.
paramselfparamfuncCallable[..., Any]paramretriesintparamcheckpoint_typestr | NoneReturns
Nonefunc_assert_call_allowed(self) -> NoneValidate that checkpoint call semantics match Kitaru MVP rules.
paramselfReturns
Nonefunc_assert_submit_allowed(self) -> NoneValidate that checkpoint submission is legal in the current context.
paramselfReturns
Nonefunc__call__(self, *args, *, id=None, after=None, **kwargs) -> AnyCall the checkpoint with context guardrails.
paramselfparamargsAny= ()paramidstr | None= NoneparamafterAny | Sequence[Any] | None= NoneparamkwargsAny= {}Returns
typing.Anyfuncsubmit(self, *args, *, id=None, after=None, **kwargs) -> AnySubmit the checkpoint concurrently inside a running flow.
paramselfparamargsAny= ()paramidstr | None= NoneparamafterAny | Sequence[Any] | None= NoneparamkwargsAny= {}Returns
typing.Anyfuncmap(self, *args, *, after=None, **kwargs) -> AnyMap checkpoint invocations inside a running flow.
paramselfparamargsAny= ()paramafterAny | Sequence[Any] | None= NoneparamkwargsAny= {}Returns
typing.Anyfuncproduct(self, *args, *, after=None, **kwargs) -> AnyMap checkpoint invocations as a cartesian product in a running flow.
paramselfparamargsAny= ()paramafterAny | Sequence[Any] | None= NoneparamkwargsAny= {}Returns
typing.Any