前几天用createFunctionTriggers给两个云函数A和B设置了定时触发器,分别是5月22日和5月24日执行。
今天,想利用deleteFunctionTrigger删除掉A和B的定时触发器,结果报告如下错误:
- 1
- errMsg:"user code exception caught"
- stackTrace:"CloudBaseError: [DeleteTrigger] The specified resource is not found. Please check and try again.
- at CloudService.request (/var/user/node_modules/@cloudbase/manager-node/lib/utils/cloud-api-request.js:113:33)
- at processTicksAndRejections (internal/process/task_queues.js:97:5)
- at async FunctionService.descriptor.value (/var/user/node_modules/@cloudbase/manager-node/lib/utils/envLazy.js:13:26)
- at async Runtime.exports.main [as handler] (/var/user/index.js:28:9)"
用getFunctionDetail查询A和B相关的定时触发器名称,发现实际上仍然是存在的
"TriggerDesc":"{\"cron\":\"0 33 12 22 5 0 2022\"}","TriggerName":"xxxxxx"
"TriggerDesc":"{\"cron\":\"0 39 12 24 5 2 2022\"}","TriggerName":"yyyyyy"
但用deleteFunctionTrigger删除指定名称的触发器就是删除不了,报告不存在
什么原因啊?怎么解决呢?谢谢