Add selectAccounts filter and accountIDs param to orchestrator.Run
This commit is contained in:
@@ -67,7 +67,7 @@ func (s *Scheduler) tick(ctx context.Context) {
|
||||
return
|
||||
}
|
||||
for _, id := range dueTaskIDs(tasks, time.Now()) {
|
||||
if _, err := s.orch.Run(ctx, id, "scheduled"); err != nil {
|
||||
if _, err := s.orch.Run(ctx, id, "scheduled", nil); err != nil {
|
||||
// ErrAlreadyRunning / ErrNotTested are expected races/edge cases, not fatal.
|
||||
slog.Info("scheduler: run skipped", "task", id, "err", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user