LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdk_asynccronCronClient
    Classā—Since v0.3

    CronClient

    Copy
    CronClient(
        self,
        http_client: HttpClient,
    )

    Constructors

    Attributes

    Methods

    View source on GitHub
    constructor
    __init__
    NameType
    http_clientHttpClient
    attribute
    http: http_client
    method
    create_for_thread

    Create a cron job for a thread.

    method
    create

    Create a cron run.

    method
    delete

    Delete a cron.

    method
    update

    Update a cron job by ID.

    method
    search

    Get a list of cron jobs.

    method
    count

    Count cron jobs matching filters.

    Client for managing recurrent runs (cron jobs) in LangGraph.

    A run is a single invocation of an assistant with optional input, config, and context. This client allows scheduling recurring runs to occur automatically.

    Example Usage
    client = get_client(url="http://localhost:2024"))
    cron_job = await client.crons.create_for_thread(
        thread_id="thread_123",
        assistant_id="asst_456",
        schedule="0 9 * * *",
        input={"message": "Daily update"}
    )
    Feature Availability

    The crons client functionality is not supported on all licenses. Please check the relevant license documentation for the most up-to-date details on feature availability.