Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues between local denokv DB and KV Connect #57

Open
mcgear opened this issue Dec 17, 2023 · 7 comments
Open

Issues between local denokv DB and KV Connect #57

mcgear opened this issue Dec 17, 2023 · 7 comments

Comments

@mcgear
Copy link

mcgear commented Dec 17, 2023

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

@igorzi
Copy link
Collaborator

igorzi commented Dec 17, 2023

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?

@mcgear
Copy link
Author

mcgear commented Dec 18, 2023

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.

@igorzi
Copy link
Collaborator

igorzi commented Dec 18, 2023

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.

@mcgear
Copy link
Author

mcgear commented Dec 21, 2023

Is there a timeline for KV connect protocol support? We deploy our deno apps outside of Deno Deploy.

@igorzi
Copy link
Collaborator

igorzi commented Dec 22, 2023

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?

@mcgear
Copy link
Author

mcgear commented Dec 30, 2023

Looking to do both outside at this point

@mcgear
Copy link
Author

mcgear commented Feb 28, 2024

Wanted to check in on this and see what the roadmap looked like for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants