Deployment Error: workers.api.error.placement_and_triggers_configured (100150)
Hi all!
I'm suddenly getting the following error when trying to deploy an worker, as the error might indicate, we do have placements set to smart and we have a queue consumer / producer set in the same worker. I feel like this didn't happen before and wonder what changed, and if it's not possible to have smart placements enabled with queue consumers / producers?
29 Replies
I feel like this did work before, turning off smart placement with
[placement] mode = "off"
gives me workers.api.error.unknown [code: 10013]
. Turning off smart placement in the dashboard also gives me An unknown error occured. (Code: 10013)
We don't have any cron bindings in wrangler.toml, we did export a scheduled function (for once we enabled a cron job), but even after commenting this out the same issue happens
7f80802cc22f5b5cc65331d4e2523f79
- api-service-prodraising
Maybe relevant to know, probably not, saw the incident in IAD this morning, our worker might have been smart placed there since we have one of our data services running there I believe
Smart placement doesn’t work with cron triggers.
They'll check the unknown error in 1h or so
@veerooo that's good to know, but we currently don't have any cron triggers, only queues / KV. We did have a
scheduled
function exported (for once we start using cron triggers), but even after commenting it out and re-deploying same issue occurs.@veerooo let me know if anything else is needed, would love to deploy again as soon as possible!
they say they aren't sure commenting out scheduled cron triggers works as expected. They've had problems with this in the past, and ended up having to create an empty array for the cron trigger in wrangler.toml to make it go away
not sure if that happens with scheduled functions
Same result with the scheduled function removed, and with
In my wrangler.toml
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Alright, keep me posted!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Correct, is giving me
workers.api.error.unknown [code: 10013]
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
is giving me
workers.api.error.placement_and_triggers_configured [code: 100150]
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah
@mhart I can sent you full configuration of my toml file if needed
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@mhart as long as I can deploy again that would be great!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@mhart no results:
Also get request is return this:
@mhart Can you confirm whether this is still being looked into?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yes completely removed
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Appreciate the support! So it was just having a scheduled handler in my worker that caused it to register as a cron worker? I don't think we ever had it registered in wrangler.toml
@mhart any updates? Seems like we're still receiving the same error:
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Seems like I can deploy now with smart placements on*! Thanks for fixing this! Would love to hear about the recommendations around crons / smart placements for when we actually implement crons, then we might do it in another worker!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah makes sense, people might have a single worker handling different things though: queues, api routes, jobs
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View