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:
18
internal/modelschedule/queries.sql
Normal file
18
internal/modelschedule/queries.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- name: Ping :one
|
||||
SELECT 1;
|
||||
|
||||
-- name: GetLast :one
|
||||
SELECT last_run
|
||||
FROM
|
||||
model_schedules
|
||||
WHERE
|
||||
model_name = $1
|
||||
LIMIT 1;
|
||||
|
||||
-- name: UpsertModel :exec
|
||||
INSERT INTO model_schedules (model_name, last_run)
|
||||
VALUES ($1, $2)
|
||||
ON CONFLICT (model_name)
|
||||
DO UPDATE SET
|
||||
last_run = excluded.last_run;
|
||||
|
Reference in New Issue
Block a user