Convex Crons

作者 get-convex2cfe645c87f9無授權條款63 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫6 天前更新

Add recurring scheduled jobs (crons) to the Convex app.

AI 產生的概覽

透過定義以內部函式為目標的定時工作,為 Convex 應用程式加入週期性排程工作(cron)。

功能
引導代理建立包含 cronJobs() 的 convex/crons.ts 檔案,並以適當的間隔排程內部函式。它強調處理函式應保持精簡且具冪等性,並確認工作出現在儀表板的排程清單中。產出的是設定說明,而非指令碼。
適用情境
適用於 Convex 應用程式需要週期性背景工作的情境,例如定期維護或清理工作。也適合排程工作應呼叫內部函式而非公開 API 端點的情況。
執行需求
需要一個 Convex 專案,並具備 Convex 工具鏈和儀表板存取權限。此技能未隨附指令碼,僅為說明文件。
<!-- GENERATED from convex-agents content/capabilities/crons.json — do not edit by hand. -->

Add scheduled jobs (crons)

Define recurring jobs in convex/crons.ts targeting internal functions, with sane intervals and idempotent handlers.

Workflow

  1. Create convex/crons.ts with cronJobs().
  2. Schedule internal functions (never public api.*) at the right interval.
  3. Make handlers idempotent (safe to re-run); keep each run small.
  4. Verify the job appears in the dashboard schedule.

Rules

  • Schedule internal.* functions, never api.*.
  • Keep cron handlers small + idempotent.
  • Don't poll tight intervals for things a subscription can push.

來源與署名

來源:get-convex/agent-skills位於skills/convex-crons提交2cfe645

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架