Skip to main content

Background Tasks CLI

Manage background tasks from the command line. Submit recipes, check status, cancel tasks, and clear completed tasks.

Commands Overview

Submit a Recipe

Submit a recipe to run in the background:

Submit Options

Alternative: Recipe Run with Background Flag

You can also use the recipe run command with the --background flag:

List Tasks

List all background tasks:

List Options

Check Status

Get detailed status of a specific task:

Status Output

Cancel Task

Cancel a running task:

Clear Completed Tasks

Remove completed tasks from the list:

Clear Options

Examples

Complete Workflow

Scripting with JSON Output

Troubleshooting

Task Not Starting

If tasks remain in pending status:
  • Check if max concurrent tasks limit is reached
  • Verify the recipe exists and is valid
  • Check system resources

Task Timeout

If tasks are timing out:
  • Increase timeout with --timeout flag
  • Check if the recipe is making slow API calls
  • Consider breaking into smaller tasks

Cannot Find Task

If task ID is not found:
  • Tasks may have been cleared
  • Check if using correct task ID format
  • List all tasks to verify

See Also