Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for isCancellationRequested (0.67 sec)

  1. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultPlanExecutorTest.groovy

            then:
            result.failures.empty
    
            1 * workerLeaseService.currentWorkerLease >> workerLease
    
            then:
            1 * cancellationHandler.isCancellationRequested() >> false
            1 * workerLease.tryLock() >> true
            1 * workSource.executionState() >> WorkSource.State.MaybeWorkReadyToStart
            1 * workSource.selectNext() >> WorkSource.Selection.of(node)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/CancelExecutionStep.java

                cancellationToken.addCallback(interrupt);
                return delegate.execute(work, context);
            } finally {
                cancellationToken.removeCallback(interrupt);
                if (cancellationToken.isCancellationRequested()) {
                    Thread.interrupted();
                    throw new BuildCancelledException("Build cancelled while executing " + work.getDisplayName());
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/protocol/InternalCancellationToken.java

    /**
     * Cancellation token passed from consumer to provider to propagate cancellation events.
     * @since 2.1-rc-1
     */
    public interface InternalCancellationToken {
        boolean isCancellationRequested();
    
        /**
         * Adds a callback that will be executed when cancel event is triggered.
         * It can be run synchronously if the token is already cancelled.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/continuous/ContinuousBuildActionExecutor.java

                            if (!operationToken.isCancellationRequested()) {
                                fileEventCollector.reportChanges(logger);
                            }
                        });
                    }
                } finally {
                    fileChangeListeners.removeListener(fileEventCollector);
                }
    
                if (cancellationToken.isCancellationRequested()) {
                    break;
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 17:41:07 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/DefaultBuildController.java

            throws BuildExceptionVersion1, InternalUnsupportedModelException {
            assertCanQuery();
            if (cancellationToken.isCancellationRequested()) {
                throw new BuildCancelledException(String.format("Could not build '%s' model. Build cancelled.", modelIdentifier.getName()));
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:56:14 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/build-state/src/main/java/org/gradle/internal/buildprocess/execution/BuildSessionLifecycleBuildActionExecutor.java

                    } else {
                        return BuildActionResult.of(payloadSerializer.serialize(result.getClientResult()));
                    }
                }
                if (requestContext.getCancellationToken().isCancellationRequested()) {
                    return BuildActionResult.cancelled(payloadSerializer.serialize(result.getBuildFailure()));
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/configuration/project/LifecycleProjectEvaluator.java

        }
    
        @Override
        public void evaluate(final ProjectInternal project, final ProjectStateInternal state) {
            if (state.isUnconfigured()) {
                if (cancellationToken.isCancellationRequested()) {
                    throw new BuildCancelledException();
                }
                buildOperationRunner.run(new EvaluateProject(project, state));
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClient.java

            }
    
            if (result instanceof Failure) {
                Throwable failure = ((Failure) result).getValue();
                if (failure instanceof DaemonStoppedException && cancellationToken.isCancellationRequested()) {
                    return BuildActionResult.cancelled(new BuildCancelledException("Daemon was stopped to handle build cancel request.", failure));
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultPlanExecutor.java

                    selected = MutableReference.empty();
                    coordinationService.withStateLock(resourceLockState -> {
                        stats.finishWaitingForNextItem();
                        if (cancellationToken.isCancellationRequested()) {
                            queue.cancelExecution();
                        }
    
                        WorkSource.State state = queue.executionState();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 29.1K bytes
    - Viewed (0)
Back to top