{"record":{"id":"d646e60c06e8fcce","repo":"langchain-ai/langgraph","slug":"checkpoint-during-is-deprecated-and-will-be-remo-d646e6","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/_async/runs.py","lineNumber":307,"sourceCode":"                webhook=\"https://my.fake.webhook.com\",\n                multitask_strategy=\"interrupt\"\n            ):\n                print(chunk)\n            ```\n\n            ```shell\n\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        \"\"\"\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\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,","sourceCodeStart":289,"sourceCodeEnd":325,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/sdk-py/langgraph_sdk/_async/runs.py#L289-L325","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/_async/runs.py:307 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"}