Beispiel #1
0
        public async Task WhenPipelineRun()
        {
            _helper = new ParentHelper()
                      .WithBasicMetadata()
                      .WithTenantAndSubscriptionIds()
                      .WithSPNInDatabase("FrameworkFactory")
                      .WithEmptyExecutionTables()
                      .WithoutPrecursorObject() //done to ensure 2min waits are used, not example precursor waits
                      .With2MinWaitsOnWorkers() //to ensure the cancel call has enough time
                      .WithCancelledWorkersBlock(false)
                      .WithOnlyStageOneEnabled();

            var runOrchestrator = _helper.RunPipeline();
            var cancelWorker    = _helper.CancelAnyWorkerPipeline(); //any worker

            await Task.WhenAll(runOrchestrator, cancelWorker);
        }
Beispiel #2
0
        public async Task WhenPipelineRun()
        {
            _helperFirstRun = new ParentHelper()
                              .WithBasicMetadata()
                              .WithTenantAndSubscriptionIds()
                              .WithSPNInDatabase("FrameworkFactory")
                              .WithEmptyExecutionTables()
                              .WithoutPrecursorObject() //done to ensure 2min waits are used, not example precursor waits
                              .With2MinWaitsOnWorkers() //to ensure the cancel call has enough time
                              .WithCancelledWorkersBlock(true)
                              .WithFailureHandling("Simple");

            var runOrchestrator = _helperFirstRun.RunPipeline();
            var cancelWorker    = _helperFirstRun.CancelAnyWorkerPipeline();

            await Task.WhenAll(runOrchestrator, cancelWorker);

            _helperRestartRun = new ParentHelper();
            await _helperRestartRun.RunPipeline();
        }