-
Notifications
You must be signed in to change notification settings - Fork 2
/
serverless.yml
101 lines (95 loc) · 2.16 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
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