{"record":{"id":"c9c4524d4f30468e","repo":"langchain-ai/langgraph","slug":"cannot-use-both-checkpoint-during-and-durabilit","errorCode":null,"errorMessage":"Cannot use both `checkpoint_during` and `durability` parameters. Please use `durability` instead.","messagePattern":"Cannot use both `checkpoint_during` and `durability` parameters\\. Please use `durability` instead\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/pregel/main.py","lineNumber":2732,"sourceCode":"\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            )\n        if debug or self.debug:\n            print_mode = [\"updates\", \"values\"]\n\n        stream = SyncQueue()\n\n        config = ensure_config(self.config, config)","sourceCodeStart":2714,"sourceCodeEnd":2750,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/pregel/main.py#L2714-L2750","documentation":"Error \"Cannot use both `checkpoint_during` and `durability` parameters. Please use `durability` instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/pregel/main.py:2732 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"}