async-task-pattern - Async Task Pattern for Long-running Operations
Standard async state machine template for operations exceeding 10 seconds
Tags
Updated: 2026-06-15Capabilities
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
