Cron Job Management (lam.cron)

lam.cron is a powerful scheduling system that allows you to create, manage, and execute scheduled tasks (cron jobs) within your workflows. Users create cron steps by defining step programs that return lam.cron objects containing scheduling information, with support for creating, updating, deleting, and listing scheduled tasks.

Key Concepts

A Cron job is created by defining step programs that return lam.cron object. Each cron operation consists of:

  • Operation Types: Create, update, delete, or list scheduled tasks

  • Cron Schedules: Standard cron syntax for defining when tasks run

  • URL: Destination of the POST request and body

  • Body: JSON body that will be sent as part of the cron job

Basic lam.cron Structure

(data) => {
    return {
        "lam.cron": {
            "operation": "create",
            "name": "Daily Report",
            "schedule": "0 0 9 * * *",
            "url": "https://api.laminar.run/workflow/execute/external/308?api_key=your-key&configuration_id=58",
            "body": {
                "report_type": "daily"
            }
        }
    };
}

Last updated

Was this helpful?