Skip to main content
Tasks and schedules keep background work inside the Capsule app. Use tasks for work triggered by a user or page action. Use schedules for recurring work.

Define a task

Submit a task

Add task options

  • retries: retry transient failures
  • timeout: stop runaway work
  • lock: prevent duplicate work for the same key
  • process=True: run in a separate process for isolation

Schedule recurring work

Show task state on a page