{"record":{"id":"b1444ea45851e43b","repo":"langchain-ai/langgraph","slug":"checkpoint-during-is-deprecated-and-will-be-remo-b1444e","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/cron.py","lineNumber":144,"sourceCode":"            ```python\n            client = get_client(url=\"http://localhost:2024\")\n            cron_run = await client.crons.create_for_thread(\n                thread_id=\"my-thread-id\",\n                assistant_id=\"agent\",\n                schedule=\"27 15 * * *\",\n                input={\"messages\": [{\"role\": \"user\", \"content\": \"hello!\"}]},\n                metadata={\"name\":\"my_run\"},\n                context={\"model_name\": \"openai\"},\n                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                webhook=\"https://my.fake.webhook.com\",\n                multitask_strategy=\"interrupt\",\n                enabled=True,\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 = {\n            \"schedule\": schedule,\n            \"input\": input,\n            \"config\": config,\n            \"metadata\": metadata,\n            \"context\": context,\n            \"assistant_id\": assistant_id,\n            \"checkpoint_during\": checkpoint_during,\n            \"interrupt_before\": interrupt_before,\n            \"interrupt_after\": interrupt_after,\n            \"webhook\": webhook,\n            \"end_time\": end_time.isoformat() if end_time else None,\n            \"enabled\": enabled,","sourceCodeStart":126,"sourceCodeEnd":162,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/sdk-py/langgraph_sdk/_async/cron.py#L126-L162","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/cron.py:144 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"}