Open mcgear opened 10 months ago
Can you please describe your project structure? Do you have a listenQueue
handler in one Deno Deploy project? and you're trying to enqueue from another Deno Deploy project?
No, everything is in the same project. The index file i linked to is where it starts, and the handler is here: https://github.com/fathym-deno/everything-as-code/blob/integration/handlers/eac/commit.handler.ts
The helper methods are here: https://github.com/fathym-deno/everything-as-code/blob/integration/src/utils/deno-kv/helpers.ts
Additional handling for the checks are here: https://github.com/fathym-deno/everything-as-code/blob/integration/handlers/eac/commit-check.handler.ts
Let me know if you need anything else.
In Deno Deploy, you don't need to use KV connect to interact with a KV database. You can just do Deno.openKv()
and it will use the default KV database in your project.
Queues are currently not supported in KV connect protocol.
Is there a timeline for KV connect protocol support? We deploy our deno apps outside of Deno Deploy.
It's on the roadmap. Do you want to only enqueue and dequeue outside of Deno Deploy? Or just enqueue from outside, but have listenQueue
in Deno Deploy?
Looking to do both outside at this point
Wanted to check in on this and see what the roadmap looked like for this.
I am receiving this error when connecting to deno KV database from deno deploy: Error: Enqueue operations are not supported in KV Connect.
All works fine against a local db on file system.
Based on the docs i read, it seems like this should work on deno deploy as well.
Code start at line 110 of this file: https://github.com/fathym-deno/everything-as-code/blob/integration/routes/api/eac/index.ts