LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

async-task-pattern - Async Task Pattern for Long-running Operations

Standard async state machine template for operations exceeding 10 seconds

Tags

Updated: 2026-06-15

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • trigger async task
  • check task status
  • prevent duplicate triggers
  • manage state cache
  • restore thread context
  • poll task status
  • cleanup expired states

Inputs

  • Executor service
  • Tenant ID
  • State cache
  • Task parameters

Outputs

  • Task state
  • Progress update
  • Error message
  • Task result

Requirements

  • Thread executor
  • State TTL/LRU strategy
  • Tenant context propagation

Source

  • Spec: SKILL.md
async
task
state-machine
long-running
batch-processing
multi-tenant
trigger async task
check task status
prevent duplicate triggers
manage state cache
Executor service
Tenant ID
State cache
Task state
Progress update
Error message