protected void deploy(ApplicationId application, String reason) {
        if (pendingDeployments.addIfAbsent(application)) { // Avoid queuing multiple deployments for same application
            deploymentExecutor.execute(() -> deployNow(application, reason));
        }
    }
Redeploy this application.

The default implementation deploys asynchronously to make sure we do all applications timely
even when deployments are slow.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/ApplicationMaintainer.java