From fc742bdc6dc0613435f02f1ade5af86dc536200f Mon Sep 17 00:00:00 2001 From: Garet Halliday <me@garet.holiday> Date: Sat, 16 Sep 2023 03:02:40 -0500 Subject: [PATCH] oh wow actually getting there --- lib/rob/schedulers/v2/sink/sink.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/rob/schedulers/v2/sink/sink.go b/lib/rob/schedulers/v2/sink/sink.go index a3987e5d..1a00fd0b 100644 --- a/lib/rob/schedulers/v2/sink/sink.go +++ b/lib/rob/schedulers/v2/sink/sink.go @@ -2,6 +2,7 @@ package sink import ( "github.com/google/uuid" + "log" "sync" "time" @@ -33,6 +34,7 @@ func NewSink(id uuid.UUID) *Sink { func (T *Sink) schedule(j job.Stalled) bool { if T.active == j.User { + log.Println("couldn't schedule because user is active") return false } @@ -60,6 +62,7 @@ func (T *Sink) schedule(j job.Stalled) bool { } if s.User == j.User { + log.Println("couldn't schedule because user is scheduled") return false } stride += 1 -- GitLab