Add selectAccounts filter and accountIDs param to orchestrator.Run

This commit is contained in:
2026-07-08 13:37:24 +07:00
parent 692a83a468
commit 315e56046b
4 changed files with 50 additions and 3 deletions
+1 -1
View File
@@ -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)
}