如何像使用无服务器的命令一样添加retry
属性?
gcloud functions deploy FUNCTION_NAME --retry
看看我的serverless.yml
文件:
service: myService
provider:
name: google
stage: prod
runtime: nodejs8
region: us-central1
project: my-project
credentials: my-credentials.json
plugins:
- serverless-google-cloudfunctions
functions:
first:
handler: myFunction
events:
- event:
eventType: providers/cloud.pubsub/eventTypes/topic.publish
resource: my-topic-name