加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
serverless.yml 2.16 KB
一键复制 编辑 原始数据 按行查看 历史
lunnlew 提交于 2021-01-31 18:07 . update
service: auto-sign-matchine
provider: # provider information
name: tencent
runtime: Nodejs12.16 # Nodejs8.9 or Nodejs6.10
credentials: ~/credentials
# you can overwrite defaults here
# stage: dev
# cosBucket: DEFAULT
# role: QCS_SCFExcuteRole
# memorySize: 256
# timeout: 10
# region: ap-shanghai
# environment:
# variables:
# ENV_FIRST: env1
# ENV_SECOND: env2
# vpcConfig:
# vpcId: test
# subnetId: test
plugins:
- serverless-tencent-scf
# you can add packaging information here
#package:
# include:
# - include-me.js
# - include-me-dir/**
# exclude:
# - exclude-me.js
# - exclude-me-dir/**
# 免费用户执行时长不得超过900秒
functions:
task1:
handler: tscf.main_handler
runtime: Nodejs12.16
memorySize: 256
timeout: 900
environment:
variables:
cmd: unicom
config: default.json
tasks: dailysignin,winterTwo,dxIntegralEveryDay,dailygamebox,dailylotteryintegral,dailywoTree,dailyLiuLan,dailycomment,producGameSignin
events:
- timer:
name: timer
parameters:
cronExpression: '10 9-10 * * *'
enable: true
task2:
handler: tscf.main_handler
runtime: Nodejs12.16
memorySize: 256
timeout: 900
environment:
variables:
cmd: unicom
config: default.json
tasks: dailygameflow
events:
- timer:
name: timer
parameters:
cronExpression: '*/30 7-23 * * *'
enable: true
task3:
handler: tscf.main_handler
runtime: Nodejs12.16
memorySize: 256
timeout: 900
environment:
variables:
cmd: unicom
config: default.json
tasks: dailygameIntegral
events:
- timer:
name: timer
parameters:
cronExpression: '*/30 7-23 * * *'
enable: true
task4:
handler: tscf.main_handler
runtime: Nodejs12.16
memorySize: 256
timeout: 900
environment:
variables:
cmd: unicom
config: default.json
tasks: todayDailyTask
events:
- timer:
name: timer
parameters:
cronExpression: '*/30 22 * * *'
enable: true
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化