better off not using DOs and just using waitUntil in a normal worker at that point
better off not using DOs and just using waitUntil in a normal worker at that point


fetch() handler. It’s null because I suspect you’re trying to pass the socket (somehow?) across handlers: you can’t.Internal Server Error. {
"message": [
"Queue is dead=>",
null
],
"level": "log",
"timestamp": 1695380365584
},async queue(batch: MessageBatch<any>, env: Env): Promise<void> {
try {
let messages = JSON.stringify(batch.messages);
console.log(`consumed from our queue: ${messages}`);
if(serverSocket !== undefined){
console.log('ServerSocket=>', serverSocket) ;
serverSocket.send(messages);
}else{
console.log('ServerSocket Undefined=>', serverSocket) ;
console.log('Sending from Running Sock=>', serverSocket) ;
env.runningSock.send(messages);
}
} catch (error) {
console.log('Error=>',error);
}
},[[queues.producers]]
queue = "pdx-dev-stripe-queue"
binding = "STRIPE_QUEUE"
[[queues.consumers]]
queue = "pdx-dev-stripe-queue"
max_batch_size = 1
max_batch_timeout = 30