Crazy Rabbit
05/03/2023, 2:35 PMCrazy Rabbit
05/03/2023, 2:35 PMCrazy Rabbit
05/03/2023, 2:36 PMSebastiaanYN
05/03/2023, 2:36 PMSebastiaanYN
05/03/2023, 2:36 PMSkye
05/03/2023, 2:37 PMsathoro
05/03/2023, 2:42 PMSkye
05/03/2023, 2:43 PM[env.*]
section, regardless of whether it's the same one or a new onesathoro
05/03/2023, 2:50 PMsathoro
05/03/2023, 2:51 PM[[queues.producers]]
queue = "article-queue"
binding = "ARTICLE_QUEUE"
[[queues.consumers]]
queue = "article-queue"
but in my second env I have to use this syntax
queues.producers = [
{ queue = "article-queue", binding = "ARTICLE_QUEUE" }
]
queues.consumers = [
{ queue = "article-queue" }
]
I don't understand this, I thought they are equivalentSkye
05/03/2023, 3:04 PM[[env.MY_ENV.queues.producers]]
and you can have the same syntax as the first oneSkye
05/03/2023, 3:04 PMwrangler.json
, and pass the -j
flag each time you call wranglersathoro
05/03/2023, 3:09 PMsathoro
05/03/2023, 3:09 PMSkye
05/03/2023, 3:10 PMsathoro
05/03/2023, 3:17 PMjs
async queue(batch, env) {
const request = {};
const sentry = null;
const context = {
waitUntil: () => {},
};
withDurables({ parse: true })(request, env);
let messages = batch.messages[0].body;
console.log(`consumed from our queue: ${JSON.stringify(messages)}`);
don't hate melgraz
05/03/2023, 3:47 PMUnsmart | Tech debt
05/03/2023, 3:48 PMlgraz
05/03/2023, 3:52 PMSkye
05/03/2023, 3:53 PMlgraz
05/03/2023, 3:53 PMlgraz
05/03/2023, 3:53 PMsathoro
05/03/2023, 3:55 PMsathoro
05/03/2023, 3:56 PMSkye
05/03/2023, 3:56 PMsathoro
05/03/2023, 3:58 PMsathoro
05/03/2023, 4:17 PM