avsaase
CDCloudflare Developers
•Created by avsaase on 4/9/2024 in #workers-help
Problems with wrangler when developing worker in Rust
I have a worker that's written in Rust and I'm trying to run it locally with
npx wrangler dev
. During compilation of my code I get this error
After this, it looks like the process stops (I get a new blank line in my terminal) but actually it continues in the background and once it is finished get some more lines printed
At this point the server has not started and it looks like that never happens to I kill the program with ctrl + c
. If I then run npx wrangler dev
again, without making any changes to my code, the server starts correctly. The same problem happens when making changes to my code that require a recompilation.1 replies
CDCloudflare Developers
•Created by avsaase on 3/23/2024 in #workers-help
How can I find out if a request hit a new worker instance or one that was already warm?
I know there is supposedly no cold start time but when I package my Rust worker I get a warning that workers >1MB have higher cold starts. I do occasionally see longer response times of ~2 seconds and I want to find out if that's because of a cold start or something else.
2 replies