Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for cancelBuild (0.17 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DaemonStateCoordinatorTest.groovy

            }
    
            0 * _._
        }
    
        def "cancelBuild when running command completes in short time"() {
            def command = Mock(Runnable)
    
            expect:
            notStopped
    
            when:
            coordinator.runCommand(command, "command")
            start {
                thread.blockUntil.running
                coordinator.cancelBuild()
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:24:02 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/process/internal/CancellationIntegrationTest.groovy

            startBuild(task, buildCacheEnabled)
            cancelBuild(task)
    
            startBuild(task, buildCacheEnabled)
            cancelBuild(task)
    
            assert daemons.daemons.size() == 1
        }
    
        private void assertTaskIsCancellable(String task, boolean buildCacheEnabled = false) {
            startBuild(task, buildCacheEnabled)
            cancelBuild(task)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 04:31:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompileDaemonCancellationIntegrationTest.groovy

            def handler = blockingHttpServer.expectAndBlock("/block")
    
            when:
            startBuild("compileJava")
    
            then:
            handler.waitForAllPendingCalls()
    
            then:
            cancelBuild()
    
            then:
            daemons.daemon.becomesIdle()
    
            and:
            pidFile().exists()
            def pid1 = pidFile().text.strip() as long
            new ProcessFixture(pid1).waitForFinish()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/HandleCancel.java

                @Override
                public void run() {
                    LOGGER.info("HandleCancel processing {}", execution.getCommand());
                    execution.getDaemonStateControl().cancelBuild();
                }
            });
            try {
                execution.proceed();
            } finally {
                execution.getConnection().onCancel(null);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/api/DaemonStateControl.java

         * doesn't finnish in a timely manner a request for forceful stop will be issued ({@link #requestForcefulStop(String reason)}.</p>
         */
        void cancelBuild();
    
        /**
         * Returns a cancellation token used to communicate cancel requests to commands processed in this daemon.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:24:02 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

                    requestForcefulStop("the build was canceled after a stop was requested");
                }
            } finally {
                lock.unlock();
            }
        }
    
        @Override
        public void cancelBuild() {
            requestCancel();
    
            lock.lock();
            try {
                while (true) {
                    try {
                        switch (state) {
                            case Idle:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. src/context/context_test.go

    	_, ret := m[key]
    	return ret
    }
    
    func XTestParentFinishesChild(t testingT) {
    	// Context tree:
    	// parent -> cancelChild
    	// parent -> valueChild -> timerChild
    	// parent -> afterChild
    	parent, cancel := WithCancel(Background())
    	cancelChild, stop := WithCancel(parent)
    	defer stop()
    	valueChild := WithValue(parent, "key", "value")
    	timerChild, stop := WithTimeout(valueChild, veryLongDuration)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 19:13:01 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  8. src/context/x_test.go

    }
    
    func (ccc *customCauseContext) cancel() {
    	ccc.mu.Lock()
    	ccc.err = Canceled
    	close(ccc.done)
    	cancelChild := ccc.cancelChild
    	ccc.mu.Unlock()
    
    	if cancelChild != nil {
    		cancelChild()
    	}
    }
    
    func (ccc *customCauseContext) setCancelChild(cancelChild CancelFunc) {
    	ccc.cancelChild = cancelChild
    }
    
    func TestCustomContextCause(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top