Skip to main content

Jobs

Jobs are background tasks that run asynchronously in the Chucky cloud. Unlike interactive prompts, jobs execute without waiting for real-time streaming - perfect for long-running tasks, scheduled work, or webhook-driven workflows.

Create a Job

Options

Examples

Simple job:
Wait for completion:
Apply changes automatically:
The --apply flag implies --wait and will automatically fetch and apply the git bundle when the job completes successfully. With webhook callback:
Delayed execution:
This schedules the job to start in 1 hour (3600 seconds).

List Jobs

Options

Example

Get Job Details

Options

Example

Cancel a Job

Cancels a running or queued job.

Job Lifecycle

  1. PENDING: Job created, waiting to be queued
  2. QUEUED: Job in queue, waiting for available worker
  3. EXECUTING: Job running in sandbox
  4. COMPLETED: Job finished successfully
  5. FAILED: Job encountered an error
  6. CANCELED: Job was manually canceled

Webhooks

When you provide a --callback-url, Chucky will POST the job result to your endpoint when the job completes:
If you provide a --callback-secret, the payload will include an HMAC signature in the X-Chucky-Signature header for verification.

Retrieving Job Changes

When a job modifies files, those changes are saved as a git bundle. Use the bundle commands to retrieve them:
See Git Bundles for detailed documentation.

Next Steps

Git Bundles

Learn how to fetch and apply changes from jobs

Sessions

View session history and details