arv
arv
CDCloudflare Developers
Created by arv on 10/17/2023 in #workers-help
Deploying new versions of scripts?
My script has Durable Objects which can have WebSockets connected to them. When I deploy a new version of the script is it possible that the old instance is not shutdown immediately and the new one is not started until all the web sockets have been disconnected?
3 replies
CDCloudflare Developers
Created by arv on 3/1/2023 in #workers-help
How are unhandled promise rejections reported
I know that I can add an event listener to catch 'unhandledrejection' but I was wondering if these unhandled promise rejections are supposed to show up in the log/logpush? I do not see anything. A simple test case is
export default {
async fetch(request) {
Promise.reject('Where can I see this?');
return new Response('OK');
}
};
export default {
async fetch(request) {
Promise.reject('Where can I see this?');
return new Response('OK');
}
};
1 replies