Loads the optional canard_coordinator extension in the database-owner
process and starts it marking abandoned tasks failed across every queue, on
its own DuckDB connection and native thread. Workers keep doing the same for
the queues they poll; this covers queues nobody polls.
Arguments
- db
A local handle returned by
ca_open()orca_serve().- extension
Optional path to a compatible coordinator extension.
NULLloads an explicitly preinstalledcanard_coordinatorextension.- poll_milliseconds
Delay between maintenance polls, in milliseconds.
- reap_limit
Maximum expired tasks failed by one poll.
Details
It can start once per database instance. Call ca_coordinator_stop() or
ca_close() to join the thread and release the connection: the extension
holds that connection from the moment it loads, so closing the DBI connection
directly leaves the database open, locked and maintained until the process
exits.
No signed build is distributed, so a local build loads only into a database
opened with allow_unsigned_extensions = TRUE; see ca_open().