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

task()

The task() function is the simplest way to create a long-running task.

This documentation is coming soon.

Was this page helpful?

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