Class TargetCleanupTask

java.lang.Object
org.craftercms.deployer.impl.tasks.TargetCleanupTask

@Component @ConditionalOnProperty("deployer.main.targets.cleanup.enabled") public class TargetCleanupTask extends Object
Triggers the cleanup of all target repositories.
Author:
joseross
  • Field Details

    • targetService

      @Autowired protected TargetService targetService
  • Constructor Details

    • TargetCleanupTask

      public TargetCleanupTask()
  • Method Details

    • cleanupAllTargets

      @Scheduled(cron="${deployer.main.targets.cleanup.cron}") public void cleanupAllTargets()
      Performs a cleanup on all loaded targets.