feat: move schedules to registered workers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-01-18 13:18:12 +01:00
parent 1d4a72fd5f
commit 1cf9d23491
8 changed files with 140 additions and 3 deletions

View File

@@ -14,9 +14,11 @@ type Querier interface {
Archive(ctx context.Context, scheduleID uuid.UUID) error
GetCurrentQueueSize(ctx context.Context, workerID uuid.UUID) (int64, error)
GetNext(ctx context.Context, workerID uuid.UUID) (*WorkSchedule, error)
GetUnattended(ctx context.Context, arg *GetUnattendedParams) ([]*WorkSchedule, error)
InsertQueueItem(ctx context.Context, arg *InsertQueueItemParams) error
Ping(ctx context.Context) (int32, error)
StartProcessing(ctx context.Context, scheduleID uuid.UUID) error
UpdateSchdule(ctx context.Context, arg *UpdateSchduleParams) error
}
var _ Querier = (*Queries)(nil)