lmangani / duckdb-extension-httpserver

DuckDB HTTP API Server and Query Interface in a Community Extension
https://community-extensions.duckdb.org/extensions/httpserver.html
MIT License
50 stars 1 forks source link

Add wait mode for cli #7

Open blackrez opened 1 hour ago

blackrez commented 1 hour ago

I don't know how (and if) it's possible, but it would be interesting to have a kind of wait mode. My use case is use duckdb with gcp cloud run, a serverless docker service. I imagine something like duckdb :memory: "LOAD httpserver; SELECT httpserve_start('0.0.0.0', 9999, wait=true); And duckdb wait until a signal kill the process.

lmangani commented 1 hour ago

Hey @blackrez the server process gets killed if the parent exists, which should apply find to the DuckDB CLI terminating. Could you explain in more detail what the wait mode should provide and/or show the current limitation? Let's make it work!