feat: reprocess all command
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user