Skip to main content

Module spawn

Module spawn 

Source
Expand description

api spawn — start the objectiveai-api server in the background.

The api is machine-wide (one per OBJECTIVEAI_DIR): its lock lives at <dir>/bin/locks key api, and the lock contents are the server’s client-connect URL. If the lock is already held the server is already up and its published URL is returned as-is.

Modules§

request_schema
response_schema

Functions§

execute
spawn
The spawn flow itself, callable in-process (used by Context::api_client() as well as the api spawn command). Idempotent and cheap when the server is already up: a try_read of the lock returns the published URL without spawning.