feat: prune old workers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-01-18 12:30:13 +01:00
parent b6e9882855
commit 1d4a72fd5f
7 changed files with 33 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ func (w *WorkProcessor) ProcessNext(ctx context.Context, workerID uuid.UUID) err
return fmt.Errorf("failed to start processing items: %w", err)
}
time.Sleep(10 * time.Second)
time.Sleep(time.Millisecond * 10)
if err := w.workscheduler.Archive(ctx, *schedule); err != nil {
return fmt.Errorf("failed to archive item: %w", err)