module documentation
Task result cache for continue-as-new support.
Caches task results by (module.qualname, args, kwargs) hash so that previously completed tasks are not re-executed after a continue-as-new. The cache state is a plain dict that can travel through workflow.continue_as_new().
def cache_key(task_id:
str, args: tuple[ Any, ...], kwargs: dict[ str, Any], context: Any = None) -> str:
(source)
¶
Build a cache key from the full task identifier, arguments, and runtime context.
