Increase parallelization of attachment archive uploads.

This commit is contained in:
Greyson Parrelli
2025-08-07 16:27:08 -04:00
parent 3273787a05
commit 7b88b07170
6 changed files with 46 additions and 19 deletions

View File

@@ -275,6 +275,17 @@ public class JobManager implements ConstraintObserver.Notifier {
runOnExecutor(() -> jobController.cancelAllInQueue(queue));
}
/**
* Cancels all jobs in the specified queues. See {@link #cancel(String)} for details.
*/
public void cancelAllInQueues(@NonNull Collection<String> queues) {
runOnExecutor(() -> {
for (String queue : queues) {
jobController.cancelAllInQueue(queue);
}
});
}
/**
* Perform an arbitrary update on enqueued jobs. Will not apply to jobs that are already running.
* You shouldn't use this if you can help it. You give yourself an opportunity to really screw