我目前在项目的根目录中有一个文件cron.yaml。
version: 3
cron:
- name: "shopify"
url: "/shopify"
schedule: "0 * * * *"
- name: "quickbooks"
url: "/qb'"
schedule: "0 * * * *"
- name: "Shopify-Completed"
url: "/shopify-completed"
schedule: "0 * * * *"
- name: "License-Orders"
url: "/getLicenseOrders"
schedule: "0 * * * *"
- name: "Tee-Orders"
url: "/getTeesOrders"
schedule: "0 * * * *"
- name: "Engraved-Orders"
url: "/getEngravedOrders"
schedule: "0 * * * *"
- name: "Engraved-Mexico-Orders"
url: "/getMexicoEngravedOrders"
schedule: "0 * * * *"
- name: "Shopify-All-Orders"
url: "/pull-shopify-orders"
schedule: "*/10 * * * *"
这些都是我项目中所有经过验证的路线。例如,当我手动转到example.com//pull-shopify-orders时,它将执行。但是,当它处于cron时,它不会触发。知道为什么吗?
[cron.yaml
仅支持worker environments: