技能 编程开发 后台任务定义与服务管理

后台任务定义与服务管理

v20260424
webiny-api-tasks-catalog
本模块提供了一套用于管理后台异步任务的抽象层。它包含 `TaskDefinition`,用于定义任务的完整生命周期和钩子;以及 `TaskService`,用于触发和管理这些长时间运行的后台任务。适用于构建需要处理非即时、耗时操作的后端 API 场景。
获取技能
72 次下载
概览

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
版本 v20260424
大小 886B
更新时间 2026-04-28
语言