I am currently following this example

I am currently following this example https://github.com/cloudflare/workers-rs/blob/078d15bb60d2b05af0236c7b1370f598f5e17ada/examples/queue/src/lib.rs#L113 I am facing the following error message, similar to https://discord.com/channels/595317990191398933/1237042263150956667/1237062080117473280
Queue test-queue (5 messages) - Exceeded CPU Limit @ 30/05/2024, 19:52:42
Queue test-queue (5 messages) - Exceeded CPU Limit @ 30/05/2024, 19:52:42
I am wondering how does the consumer work. Each message of mine should query a row from D1, make a HTTP request, then update the row in D1, which shouldn't take long.
1 Reply
Sinderella
Sinderella5mo ago
reducing the initial D1 query seems to fix the issue. I suppose invoking the function by manual triggering it via HTTP request has lower duration limit?
Want results from more Discord servers?
Add your server