跳到正文
Skillpedia
API 与服务器(后端)8.1k · #12606

webiny-api-scheduler-catalog

它能做什么

这个技能是 Webiny 后端定时操作相关组件的查询列表。适用于需要在代码中管理定时操作的开发者。

适用场景

  • ✓需要从后端代码取消或运行定时操作的时候。
  • ✓需要获取定时操作的导入的时候。
  • ✓正在查找用于描述定时操作的类型的时候。

技能链接

https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/scheduler/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/scheduler/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“在 Webiny 后端取消定时操作,应该导入哪个用例?”

每周 5 个新技能,1 分钟读完。

工作原理

该技能列出调度器的用例和类型,每项都附带导入语句、源文件和简短说明。AI 在使用前会阅读源文件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

API — Scheduler

Scheduled action use cases.

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: CancelScheduledActionUseCase Import: import { CancelScheduledActionUseCase } from "webiny/api/scheduler" Source: @webiny/api-scheduler/features/CancelScheduledAction/index.ts Description: Cancel a scheduled action.


Name: ExecuteScheduledActionUseCase Import: import { ExecuteScheduledActionUseCase } from "webiny/api/scheduler" Source: @webiny/api-scheduler/features/ExecuteScheduledAction/index.ts Description: Execute a scheduled action immediately.


Name: GetScheduledActionUseCase Import: import { GetScheduledActionUseCase } from "webiny/api/scheduler" Source: @webiny/api-scheduler/features/GetScheduledAction/index.ts Description: Retrieve a scheduled action.


Name: IScheduledAction Kind: type Import: import type { IScheduledAction } from "webiny/api/scheduler" Source: @webiny/api-scheduler/shared/abstractions.ts


Name: IScheduledActionEntry Kind: type Import: import type { IScheduledActionEntry } from "webiny/api/scheduler" Source: @webiny/api-scheduler/shared/abstractions.ts


Name: ListScheduledActionsUseCase Import: import { ListScheduledActionsUseCase } from "webiny/api/scheduler" Source: @webiny/api-scheduler/features/ListScheduledActions/index.ts Description: List scheduled actions.


Name: NamespaceHandler Import: import { NamespaceHandler } from "webiny/api/scheduler" Source: @webiny/api-scheduler/features/NamespaceHandler/index.ts Description: Handle namespace-specific scheduled action logic.


Name: ScheduleActionError Kind: type Import: import type { ScheduleActionError } from "webiny/api/scheduler" Source: @webiny/api-scheduler/features/ScheduleAction/index.ts


Name: ScheduleActionUseCase Import: import { ScheduleActionUseCase } from "webiny/api/scheduler" Source: @webiny/api-scheduler/features/ScheduleAction/index.ts Description: Schedule an action for future execution.


Name: SCHEDULED_ACTION_PUBLISH Import: import { SCHEDULED_ACTION_PUBLISH } from "webiny/api/scheduler" Source: @webiny/api-scheduler/constants.ts Description: Constant identifier for the publish scheduled action type.


Name: SCHEDULED_ACTION_UNPUBLISH Import: import { SCHEDULED_ACTION_UNPUBLISH } from "webiny/api/scheduler" Source: @webiny/api-scheduler/constants.ts Description: Constant identifier for the unpublish scheduled action type.


Name: ScheduledActionHandler Import: import { ScheduledActionHandler } from "webiny/api/scheduler" Source: @webiny/api-scheduler/shared/abstractions.ts Description: Handle execution of a scheduled action.


Name: ScheduledActionModel Import: import { ScheduledActionModel } from "webiny/api/scheduler" Source: @webiny/api-scheduler/shared/abstractions.ts Description: ScheduledActionModel - A CMS model used by the scheduler for persistence.


Name: ScheduledActionType Kind: type Import: import type { ScheduledActionType } from "webiny/api/scheduler" Source: @webiny/api-scheduler/shared/abstractions.ts


Name: SchedulerService Import: import { SchedulerService } from "webiny/api/scheduler" Source: @webiny/api-scheduler/shared/abstractions.ts Description: Core service for managing scheduled actions.


常见问题

列出的用例能做什么?

根据条目说明,它们可以取消定时操作、立即运行一个定时操作,以及获取定时操作。

列表中有多少项?

描述中说明它涵盖 15 个抽象。

类型定义在哪里?

该技能为每个类型列出源文件,例如共享抽象文件。

详情

作者的原始描述

API — Scheduler — 15 abstractions. Scheduled action use cases.

repo: webiny/webiny-js

热度

GitHub 星标
8.1k
排名
#12606
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能