Example #1
0
        public ForkedJobExecutor(IJobRunContextFactory jobRunContextFactory, IJobRunInformationService jobRunInformationService, IJobRunProgressChannel progressChannel, IPeriodicTimer periodicTimer, IDateTimeProvider dateTimeProvider, ForkedExecutionConfiguration configuration)
        {
            this.jobRunContextFactory     = jobRunContextFactory;
            this.jobRunInformationService = jobRunInformationService;
            this.configuration            = configuration;
            this.progressChannel          = progressChannel;
            this.periodicTimer            = periodicTimer;
            this.dateTimeProvider         = dateTimeProvider;

            this.periodicTimer.Setup(this.StartReadyJobsFromQueue, StartNewJobsEverySeconds);
        }
Example #2
0
        public ExposeAllServicesComponent(IJobbrServiceProvider serviceProvider, IArtefactsStorageProvider artefactsStorageProvider, IJobStorageProvider jobStorageProvider, IJobManagementService jobManagementService, IQueryService queryService, IServerManagementService managementService, IJobRunInformationService informationService, IJobRunProgressChannel progressChannel)
        {
            this.ServiceProvider          = serviceProvider;
            this.ArtefactsStorageProvider = artefactsStorageProvider;
            this.JobStorageProvider       = jobStorageProvider;
            this.JobManagementService     = jobManagementService;
            this.QueryService             = queryService;
            this.ManagementService        = managementService;
            this.InformationService       = informationService;
            this.ProgressChannel          = progressChannel;

            instancesPerThread.Value = this;
        }
Example #3
0
 public ForkedExecutionController(IJobRunInformationService jobRunInformationService, IJobRunProgressChannel progressChannel)
 {
     this.jobRunInformationService = jobRunInformationService;
     this.progressChannel          = progressChannel;
 }