{"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":"Deprecation warning in the async SDK's cron creation: the checkpoint_during boolean is superseded by the durability parameter ('sync'/'async'/'exit'). The SDK still forwards the old flag to the server for compatibility.","triggerScenarios":"Thrown at libs/sdk-py/langgraph_sdk/_async/cron.py:144 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use durability=\"sync\" (or \"async\"/\"exit\") instead of checkpoint_during when creating crons","Update all cron/run creation call sites in the SDK usage consistently"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","contentChangedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}