api/tasks
How to Use
- Find the abstraction you need below
- You MUST read the source file to get the exact interface and types!
- Import:
import { Name } from "<importPath>"; - See
webiny-use-case-patternorwebiny-event-handler-patternskills for implementation patterns
Abstractions
Name: TaskDefinition
Import: import { TaskDefinition } from "webiny/api/tasks"
Source: @webiny/api-core/features/task/TaskDefinition/index.ts
Description: Define a long-running background task with lifecycle hooks.
Name: TaskService
Import: import { TaskService } from "webiny/api/tasks"
Source: @webiny/api-core/features/task/TaskService/index.ts
Description: Trigger and manage long-running background tasks.