It returns an object back with which

It returns an object back with which messages to retry/ack
3 Replies
JB
JB4mo ago
I'm a little confused, do you mean using the API to ack/retry using https://developers.cloudflare.com/api/operations/queue-v2-messages-ack ? I can't call the methods directly on the message b/c the messages are getting passed into the user worker like so:
worker.fetch('http://worker/message', {
method: "POST",
body: JSON.stringify({ messages }),
});
worker.fetch('http://worker/message', {
method: "POST",
body: JSON.stringify({ messages }),
});
Hard@Work
Hard@WorkOP4mo ago
I meant, have the User Worker return an array of ack/retry commands, that the Dispatcher then calls on the payload
JB
JB4mo ago
yes, got it! thank you kindly!
Want results from more Discord servers?
Add your server