feat: move schedules to registered workers
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:
@@ -30,4 +30,4 @@ WHERE
|
||||
-- name: PruneWorker :exec
|
||||
DELETE FROM worker_register
|
||||
WHERE
|
||||
heart_beat <= now() - INTERVAL '10 minutes';
|
||||
heart_beat <= now() - INTERVAL '1 minutes';
|
||||
|
@@ -69,7 +69,7 @@ func (q *Queries) Ping(ctx context.Context) (int32, error) {
|
||||
const pruneWorker = `-- name: PruneWorker :exec
|
||||
DELETE FROM worker_register
|
||||
WHERE
|
||||
heart_beat <= now() - INTERVAL '10 minutes'
|
||||
heart_beat <= now() - INTERVAL '1 minutes'
|
||||
`
|
||||
|
||||
func (q *Queries) PruneWorker(ctx context.Context) error {
|
||||
|
Reference in New Issue
Block a user