public ScheduledJobSynchronizer( IScheduledJobRepository scheduledJobRepository, IScheduledJobExecutor scheduledJobExecutor, IConfigurationReader configurationReader) { Logger.Information("ScheduledJobSynchronizer initialized."); _scheduledJobRepository = scheduledJobRepository; _scheduledJobExecutor = scheduledJobExecutor; _configurationReader = configurationReader; }
public SetupController(IInstallService installService, IStorageService storageService, IContentRepository contentRepository, ReferenceConverter referenceConverter, ISiteDefinitionRepository siteDefinitionRepository, IScheduledJobExecutor scheduledJobExecutor, IScheduledJobRepository scheduledJobRepository) : base(installService, storageService, contentRepository, referenceConverter, siteDefinitionRepository, scheduledJobExecutor, scheduledJobRepository) { }
public void JobStartManually <T>() where T : ScheduledJobBase { var job = _scheduledJobRepo.Get("Execute", typeof(T).FullName, typeof(T).Assembly.GetName().Name); if (!job.IsRunning) { IScheduledJobExecutor exec = ServiceLocator.Current.GetInstance <IScheduledJobExecutor>(); exec.StartAsync(job); Thread.Sleep(500); } }
public void VGJobStartManually() { var job = _scheduledJobRepo.Get("Execute", "N1990.Episerver.Cms.Audit.Business.VisitorGroupAudit", "N1990.Episerver.Cms.Audit"); if (!job.IsRunning) { IScheduledJobExecutor exec = ServiceLocator.Current.GetInstance <IScheduledJobExecutor>(); exec.StartAsync(job); Thread.Sleep(500); } }
private static void RunIndexJob(IScheduledJobExecutor scheduledJobExecutor, IScheduledJobRepository scheduledJobRepository, Guid jobId) { var job = scheduledJobRepository.Get(jobId); if (job == null) { return; } scheduledJobExecutor.StartAsync(job, new JobExecutionOptions { Trigger = ScheduledJobTrigger.User }); }
public FoundationConfigurationController(IInstallService installService, IStorageService storageService, IContentRepository contentRepository, ReferenceConverter referenceConverter, ISiteDefinitionRepository siteDefinitionRepository, IVisitorGroupRepository visitorGroupRepository, ContentExportProcessor contentExportProcessor, IScheduledJobExecutor scheduledJobExecutor, IScheduledJobRepository scheduledJobRepository) : base(installService, storageService, contentRepository, referenceConverter, siteDefinitionRepository, scheduledJobExecutor, scheduledJobRepository, visitorGroupRepository) { _contentExportProcessor = contentExportProcessor; }
public ElasticAdminCommerceController( IContentIndexService contentIndexService, ILanguageBranchRepository languageBranchRepository, ICoreIndexer coreIndexer, IElasticSearchSettings settings, IHttpClientHelper httpClientHelper, IServerInfoService serverInfoService, IScheduledJobRepository scheduledJobRepository, IScheduledJobExecutor scheduledJobExecutor, ReferenceConverter referenceConverter) : base(contentIndexService, languageBranchRepository, coreIndexer, settings, httpClientHelper, serverInfoService, scheduledJobRepository, scheduledJobExecutor) { _settings = settings; _referenceConverter = referenceConverter; }
public ElasticAdminController( ILanguageBranchRepository languageBranchRepository, ICoreIndexer coreIndexer, IElasticSearchSettings settings, IHttpClientHelper httpClientHelper, IScheduledJobRepository scheduledJobRepository, IScheduledJobExecutor scheduledJobExecutor) : base(settings, httpClientHelper, languageBranchRepository) { _coreIndexer = coreIndexer; _settings = settings; _healthHelper = new Health(settings, httpClientHelper); _httpClientHelper = httpClientHelper; _scheduledJobRepository = scheduledJobRepository; _scheduledJobExecutor = scheduledJobExecutor; }
protected BaseConfigurationController(IInstallService installService, IStorageService storageService, IContentRepository contentRepository, ReferenceConverter referenceConverter, ISiteDefinitionRepository siteDefinitionRepository, IScheduledJobExecutor scheduledJobExecutor, IScheduledJobRepository scheduledJobRepository) { InstallService = installService; StorageService = storageService; ContentRepository = contentRepository; ReferenceConverter = referenceConverter; SiteDefinitionRepository = siteDefinitionRepository; ScheduledJobExecutor = scheduledJobExecutor; ScheduledJobRepository = scheduledJobRepository; }
public JobOverviewRestStore(JobRepository repository, IScheduledJobExecutor executor) { _repository = repository; _executor = executor; }
public QuartzJob(IScheduledJobExecutor executor, ILogger <QuartzJob> logger) { this.executor = executor; this.logger = logger; }