Email Workers reply.message timeout

For Workers & Pages, what is the name of the domain?

What is the issue or error you’re encountering

I’m trying to process an inbound email, make a long-running RPC to Browser Render (which might take 1–2 minutes), then reply to the sender using message.reply(). The problem: Message.reply() is no longer allowed after ~30 seconds — the Worker context is terminated. I’m on a paid Workers plan but realised there’s no open connection during the email worker, so the event window just closes. Is there any way to defer a message.reply() or park the reply until after long async work?

What steps have you taken to resolve the issue?

env.EMAIL.send() is available however I do not want to have to verify every user I’m emailing so that rules it out.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.