Trigger.dev home pagelight logodark logo
  • Community
  • triggerdotdev/trigger.dev
  • triggerdotdev/trigger.dev
Home
v2
  • Introduction
Getting Started
  • Quick start
  • Upgrading from v2
  • Changelog
  • Feature matrix
  • Known issues
  • Limits & Performance
Fundamentals
  • /trigger folders
  • Tasks
  • Triggering
  • API keys
  • Task types
  • trigger.config file
Development
  • CLI dev command
  • Run tests
Deployment
  • Environment Variables
  • CLI deploy command
  • GitHub Actions
  • Deployment integrations
Writing tasks
  • Introduction
  • Logging and tracing
  • Errors & Retrying
  • Wait
  • Concurrency & Queues
  • Versioning
  • Machines
  • Idempotency
  • Reattempting & Replaying
  • Trigger filters
  • Notifications
  • Rollbacks
  • Using APIs
  • Middleware
  • Automated tests
Dashboard
  • Overview
  • Runs
  • Tests
  • Environment Variables
API reference
  • Functions
    • task()
    • cron.task()
    • cron.dynamic()
    • interval.task()
    • interval.dynamic()
    • zod.task()
    • zod.catalog()
    • task.trigger()
    • task.triggerAndWait()
    • task.batchTrigger()
    • task.batchTriggerAndWait()
    • wait.for()
    • wait.until()
    • wait.forEvent()
    • wait.forRequest()
    • retry.onThrow()
    • retry.fetch()
    • retry.interceptFetch()
    • notification.catalog()
    • notify()
    • queue()
  • Objects
  • CLI
  • Runs API
  • Schedules API
Architecture
  • How it works
  • Multi-tenant queue
  • Reliability
Open source
  • GitHub repo
  • Self-hosting
  • Contributing
Help
  • FAQs
  • Community
  • Email us
  • Slack
  • Uptime status
Functions

cron.task()

Trigger a task on a recurring schedule using a CRON expression.

This feature will become available during the Developer Preview.

To get the latest updates on the Developer Preview, join our Discord community or follow us on Twitter.

Was this page helpful?

Suggest editsRaise issue
task()cron.dynamic()
twittergithublinkedin
Powered by Mintlify
Assistant
Responses are generated using AI and may contain mistakes.