{"record":{"id":"a34d5d8204457b27","repo":"langchain-ai/langgraph","slug":"checkpoint-during-is-deprecated-and-will-be-remo","errorCode":null,"errorMessage":"`checkpoint_during` is deprecated and will be removed. Please use `durability` instead.","messagePattern":"`checkpoint_during` is deprecated and will be removed\\. Please use `durability` instead\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV10","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/pregel/main.py","lineNumber":2726,"sourceCode":"\n                - `\"sync\"`: Changes are persisted synchronously before the next step starts.\n                - `\"async\"`: Changes are persisted asynchronously while the next step executes.\n                - `\"exit\"`: Changes are persisted only when the graph exits.\n            control: Optional run control used to request cooperative drain.\n            subgraphs: Whether to stream events from inside subgraphs, defaults to `False`.\n\n                If `True`, the events will be emitted as tuples `(namespace, data)`,\n                or `(namespace, mode, data)` if `stream_mode` is a list,\n                where `namespace` is a tuple with the path to the node where a subgraph is invoked,\n                e.g. `(\"parent_node:<task_id>\", \"child_node:<task_id>\")`.\n\n                See [LangGraph streaming guide](https://docs.langchain.com/oss/python/langgraph/streaming) for more details.\n\n        Yields:\n            The output of each step in the graph. The output shape depends on the `stream_mode`.\n        \"\"\"\n        if (checkpoint_during := kwargs.get(\"checkpoint_during\")) is not None:\n            warnings.warn(\n                \"`checkpoint_during` is deprecated and will be removed. Please use `durability` instead.\",\n                category=LangGraphDeprecatedSinceV10,\n                stacklevel=2,\n            )\n            if durability is not None:\n                raise ValueError(\n                    \"Cannot use both `checkpoint_during` and `durability` parameters. Please use `durability` instead.\"\n                )\n            durability = \"async\" if checkpoint_during else \"exit\"\n\n        if stream_mode is None:\n            # if being called as a node in another graph, default to values mode\n            # but don't overwrite stream_mode arg if provided\n            stream_mode = (\n                \"values\"\n                if config is not None and CONFIG_KEY_TASK_ID in config.get(CONF, {})\n                else self.stream_mode\n            )","sourceCodeStart":2708,"sourceCodeEnd":2744,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/pregel/main.py#L2708-L2744","documentation":"Error \"`checkpoint_during` is deprecated and will be removed. Please use `durability` instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/pregel/main.py:2726 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}