feat: add worker distributor and model registry
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user