Revert uncomment code
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository;
|
package org.eclipse.hawkbit.repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.security.SystemSecurityContext;
|
import org.eclipse.hawkbit.security.SystemSecurityContext;
|
||||||
import org.eclipse.hawkbit.tenancy.TenantAware;
|
import org.eclipse.hawkbit.tenancy.TenantAware;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@@ -54,25 +56,25 @@ public class RolloutScheduler {
|
|||||||
*/
|
*/
|
||||||
@Scheduled(initialDelayString = RolloutProperties.Scheduler.PROP_SCHEDULER_DELAY_PLACEHOLDER, fixedDelayString = RolloutProperties.Scheduler.PROP_SCHEDULER_DELAY_PLACEHOLDER)
|
@Scheduled(initialDelayString = RolloutProperties.Scheduler.PROP_SCHEDULER_DELAY_PLACEHOLDER, fixedDelayString = RolloutProperties.Scheduler.PROP_SCHEDULER_DELAY_PLACEHOLDER)
|
||||||
public void rolloutScheduler() {
|
public void rolloutScheduler() {
|
||||||
// logger.debug("rollout schedule checker has been triggered.");
|
logger.debug("rollout schedule checker has been triggered.");
|
||||||
// // run this code in system code privileged to have the necessary
|
// run this code in system code privileged to have the necessary
|
||||||
// // permission to query and create entities.
|
// permission to query and create entities.
|
||||||
// systemSecurityContext.runAsSystem(() -> {
|
systemSecurityContext.runAsSystem(() -> {
|
||||||
// // workaround eclipselink that is currently not possible to
|
// workaround eclipselink that is currently not possible to
|
||||||
// // execute a query without multitenancy if MultiTenant
|
// execute a query without multitenancy if MultiTenant
|
||||||
// // annotation is used.
|
// annotation is used.
|
||||||
// // https://bugs.eclipse.org/bugs/show_bug.cgi?id=355458. So
|
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=355458. So
|
||||||
// // iterate through all tenants and execute the rollout check for
|
// iterate through all tenants and execute the rollout check for
|
||||||
// // each tenant seperately.
|
// each tenant seperately.
|
||||||
// final List<String> tenants = systemManagement.findTenants();
|
final List<String> tenants = systemManagement.findTenants();
|
||||||
// logger.info("Checking rollouts for {} tenants", tenants.size());
|
logger.info("Checking rollouts for {} tenants", tenants.size());
|
||||||
// for (final String tenant : tenants) {
|
for (final String tenant : tenants) {
|
||||||
// tenantAware.runAsTenant(tenant, () -> {
|
tenantAware.runAsTenant(tenant, () -> {
|
||||||
// rolloutManagement.checkRunningRollouts(rolloutProperties.getScheduler().getFixedDelay());
|
rolloutManagement.checkRunningRollouts(rolloutProperties.getScheduler().getFixedDelay());
|
||||||
// return null;
|
return null;
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
// return null;
|
return null;
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user