feat: reprocess all command

This commit is contained in:
2026-06-28 00:40:50 +05:00
parent 1e71b94fdb
commit 30f7ae1e07
3 changed files with 74 additions and 8 deletions

View File

@@ -178,6 +178,13 @@ func (a *App) ReprocessDataset(ctx context.Context, id uuid.UUID) (domain.Datase
return a.datasets.Reprocess(ctx, id)
}
// ReprocessAllDatasets re-enqueues the processing job for every dataset,
// restarting each one's asynchronous pipeline. It returns how many jobs were
// enqueued and a per-dataset map of any failures.
func (a *App) ReprocessAllDatasets(ctx context.Context) (int, map[uuid.UUID]error, error) {
return a.datasets.ReprocessAll(ctx)
}
// Close releases all resources in reverse order of acquisition.
func (a *App) Close() {
if a.rabbit != nil {