技能 编程开发 后台任务管理抽象层

后台任务管理抽象层

v20260825
webiny-api-tasks-catalog
本模块提供了一套处理长期运行后台任务的核心抽象层。它包含 `TaskDefinition` 用于定义后台任务的完整生命周期和业务逻辑,以及 `TaskService` 用于程序化地触发、启动和管理这些任务。适用于构建可靠、异步的Web应用程序工作流。
获取技能
307 次下载
概览

api/tasks

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";
  4. See webiny-use-case-pattern or webiny-event-handler-pattern skills 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.


信息
Category 编程开发
Name webiny-api-tasks-catalog
版本 v20260825
大小 866B
更新时间 2026-09-06
语言