{"record":{"id":"ed3d733ce3e8b4da","repo":"langchain-ai/langgraph","slug":"checkpoint-during-is-deprecated-and-will-be-remo-ed3d73","errorCode":null,"errorMessage":"`checkpoint_during` is deprecated and will be removed in a future version. Use `durability` instead.","messagePattern":"`checkpoint_during` is deprecated and will be removed in a future version\\. Use `durability` instead\\.","errorType":"console","errorClass":"DeprecationWarning","httpStatus":null,"severity":"error","filePath":"libs/sdk-py/langgraph_sdk/_sync/runs.py","lineNumber":303,"sourceCode":"                interrupt_before=[\"node_to_stop_before_1\",\"node_to_stop_before_2\"],\n                interrupt_after=[\"node_to_stop_after_1\",\"node_to_stop_after_2\"],\n                feedback_keys=[\"my_feedback_key_1\",\"my_feedback_key_2\"],\n                webhook=\"https://my.fake.webhook.com\",\n                multitask_strategy=\"interrupt\"\n            ):\n                print(chunk)\n            ```\n            ```shell\n            ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n            StreamPart(event='metadata', data={'run_id': '1ef4a9b8-d7da-679a-a45a-872054341df2'})\n            StreamPart(event='values', data={'messages': [{'content': 'how are you?', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'human', 'name': None, 'id': 'fe0a5778-cfe9-42ee-b807-0adaa1873c10', 'example': False}]})\n            StreamPart(event='values', data={'messages': [{'content': 'how are you?', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'human', 'name': None, 'id': 'fe0a5778-cfe9-42ee-b807-0adaa1873c10', 'example': False}, {'content': \"I'm doing well, thanks for asking! I'm an AI assistant created by Anthropic to be helpful, honest, and harmless.\", 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'ai', 'name': None, 'id': 'run-159b782c-b679-4830-83c6-cef87798fe8b', 'example': False, 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None}]})\n            StreamPart(event='end', data=None)\n            ```\n        \"\"\"\n        if checkpoint_during is not None:\n            warnings.warn(\n                \"`checkpoint_during` is deprecated and will be removed in a future version. Use `durability` instead.\",\n                DeprecationWarning,\n                stacklevel=2,\n            )\n        payload: dict[str, Any] = {\n            \"input\": input,\n            \"command\": (\n                {k: v for k, v in command.items() if v is not None} if command else None\n            ),\n            \"config\": config,\n            \"context\": context,\n            \"metadata\": metadata,\n            \"stream_mode\": stream_mode,\n            \"stream_subgraphs\": stream_subgraphs,\n            \"stream_resumable\": stream_resumable,\n            \"assistant_id\": assistant_id,\n            \"interrupt_before\": interrupt_before,\n            \"interrupt_after\": interrupt_after,","sourceCodeStart":285,"sourceCodeEnd":321,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/sdk-py/langgraph_sdk/_sync/runs.py#L285-L321","documentation":"Error \"`checkpoint_during` is deprecated and will be removed in a future version. Use `durability` instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/sdk-py/langgraph_sdk/_sync/runs.py:303 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"}