I will just pour through the itty-code and figure out what I can, I will post back what I figure ou
I will just pour through the itty-code and figure out what I can, I will post back what I figure out in case anyone else runs into this.
unstable_dev work with queues? I've got 2 workers locally, one setup as consumer, one as producer. When the producer sends into the queue, the consumer does not react. Is this supposed to work in local dev?Service Temporarily UnavailablesendBatch . This error is being logged to my 3rd party logging infra10331f908d1d8a668c229d6e85654c7f8a6de0 or 89a515 89a515eb79...Service Temporarily Unavailable coming as an exception directly from sendBatch chunk here is lodash's chunk function, to break messages into groupsPromise.all p-map (https://github.com/sindresorhus/p-map) might help to keep the concurrency level down - you can only have 6 simultaneous connections open.send or sendBatch counts as one) . An invocation is each call to queue or fetch.fetch that is finalised at the end of the queue() handlerfetch, then all the requests within the queue invocation must be < 1000, or else the log message would never make itQueue send failed: Service Temporarily Unavailablesend(“foo”)export const sendBatchQueueMessage = ({
batch,
env,
}: SendBatchQueueMessage) => {
const ch = chunk(batch, 80);
return Promise.all(
ch.map((c) => {
return env.PROCESS_QUEUE.sendBatch(
c.map((body) => ({ body: body.message, contentType: 'json' })),
);
}),
);
};export const sendQueueMessage = ({ message, env }: SendQueueMessage) => {
return env.PROCESS_QUEUE.send(message, { contentType: 'json' });
};unstable_devlet user = proxyDurable(this.env.USER, { name: "USER", parse: true })user.get(uid)