feat: add worker distributor and model registry
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-01-18 01:46:37 +01:00
parent 54aa310583
commit 2cdab4a1ab
28 changed files with 1169 additions and 29 deletions

View File

@@ -2,14 +2,23 @@
SELECT 1;
-- name: RegisterWorker :exec
INSERT INTO worker_register (worker_id)
INSERT INTO worker_register (worker_id, capacity)
VALUES (
$1
$1
, $2
);
-- name: GetWorkers :many
SELECT
worker_id
, capacity
FROM
worker_register;
-- name: UpdateWorkerHeartbeat :exec
UPDATE worker_register
SET
heart_beat = now()
WHERE
worker_id = $1;