-
Notifications
You must be signed in to change notification settings - Fork 2
/
wrangler.toml
128 lines (103 loc) · 2.72 KB
/
wrangler.toml
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name = "beanstalk-api"
main = "src/index.ts"
compatibility_date = "2023-10-08"
logpush = true
compatibility_flags = ["nodejs_compat"]
kv_namespaces = [
{ binding = "CARDS_KV", id = "6c729db14d8e4dd093522abc3ac96310" }
]
[vars]
SENTRY_RELEASE = ""
IS_TEST = false
ENVIRONMENT = "production"
[triggers]
# Every day at midnight
crons = ["0 0 * * *"]
[[d1_databases]]
binding = "DB" # i.e. available in your Worker on env.DB
database_name = "beanstalk-api"
database_id = "c2f0d824-a702-42b0-a708-70a50760461c"
migrations_table = "migrations"
migrations_dir = "migrations"
[[r2_buckets]]
binding = 'BACKUP_BUCKET'
bucket_name = 'beanstalk-backup-bucket'
[[queues.producers]]
queue = "ingest-tournament"
binding = "INGEST_TOURNAMENT_Q"
[[queues.consumers]]
queue = "ingest-tournament"
dead_letter_queue = "ingest-tournament-dlq"
max_batch_size = 5
max_batch_timeout = 30
[[queues.consumers]]
queue = "ingest-tournament-dlq"
max_batch_size = 5
max_batch_timeout = 30
[[queues.producers]]
queue = "ingest-result"
binding = "INGEST_RESULT_Q"
[[queues.consumers]]
queue = "ingest-result"
dead_letter_queue = "ingest-result-dlq"
max_batch_size = 5
max_batch_timeout = 30
[[queues.consumers]]
queue = "ingest-result-dlq"
max_batch_size = 5
max_batch_timeout = 30
[[queues.producers]]
queue = "ingest-card"
binding = "INGEST_CARD_Q"
[[queues.consumers]]
queue = "ingest-card"
max_batch_size = 5
max_batch_timeout = 30
# DEV Env - You need to copy/paste these unfortunately
[env.dev.vars]
SENTRY_RELEASE = ""
IS_TEST = false
ENVIRONMENT = "dev"
[[env.dev.kv_namespaces]]
binding = "CARDS_KV"
id = "6c729db14d8e4dd093522abc3ac96310"
[[env.dev.queues.producers]]
queue = "ingest-tournament"
binding = "INGEST_TOURNAMENT_Q"
[[env.dev.queues.consumers]]
queue = "ingest-tournament"
dead_letter_queue = "ingest-tournament-dlq"
max_batch_size = 5
max_batch_timeout = 30
[[env.dev.queues.consumers]]
queue = "ingest-tournament-dlq"
max_batch_size = 5
max_batch_timeout = 30
[[env.dev.queues.producers]]
queue = "ingest-result"
binding = "INGEST_RESULT_Q"
[[env.dev.queues.consumers]]
queue = "ingest-result"
dead_letter_queue = "ingest-result-dlq"
max_batch_size = 5
max_batch_timeout = 30
[[env.dev.queues.consumers]]
queue = "ingest-result-dlq"
max_batch_size = 5
max_batch_timeout = 30
[[env.dev.queues.producers]]
queue = "ingest-card"
binding = "INGEST_CARD_Q"
[[env.dev.queues.consumers]]
queue = "ingest-card"
max_batch_size = 5
max_batch_timeout = 30
[[env.dev.d1_databases]]
binding = "DB"
database_name = "beanstalk-api"
database_id = "c2f0d824-a702-42b0-a708-70a50760461c"
migrations_table = "migrations"
migrations_dir = "migrations"
[[env.dev.r2_buckets]]
binding = 'BACKUP_BUCKET'
bucket_name = 'beanstalk-backup-bucket'