feat: enable worker process
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-01-17 20:51:50 +01:00
parent a68eae8519
commit e94271d5e2
16 changed files with 404 additions and 19 deletions

View File

@@ -0,0 +1,15 @@
-- name: Ping :one
SELECT 1;
-- name: RegisterWorker :exec
INSERT INTO worker_register (worker_id)
VALUES (
$1
);
-- name: UpdateWorkerHeartbeat :exec
UPDATE worker_register
SET
heart_beat = now()
WHERE
worker_id = $1;