This commit is contained in:
parent
94c88e16bd
commit
abfb805e4f
1 changed files with 2 additions and 2 deletions
|
|
@ -87,10 +87,10 @@ public class StartupRestoreService {
|
|||
|
||||
private void processingRestore() {
|
||||
List<UserPackage> packages = userPackageMapper.findAllPackagesByStatus(Status.PROCESSING.name(), Status.PROCESSING_REPEATED.name());
|
||||
packages = packages.stream().filter(userPackage -> userPackage.getRejectStatus() == null).toList();
|
||||
log.debug("Found {} packages in status PROCESSING and rejected_status = null", packages.size());
|
||||
log.debug("Found {} packages in status PROCESSING", packages.size());
|
||||
for (UserPackage userPackage : packages) {
|
||||
try {
|
||||
log.debug("Build pipeline for packageId {}", userPackage.getId());
|
||||
Pipeline pipeline = pipelinePackageManager.build(new SetupParam(userPackage.getId(), null, PipelineMode.DEFAULT));
|
||||
pipelineOrchestrator.startOrDelay(pipeline, userPackage.getId());
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue