Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for workGraph (0.31 sec)

  1. subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultIncludedBuildTaskGraph.java

            DefaultBuildTreeWorkGraph previous = current.get();
            DefaultBuildTreeWorkGraph workGraph = new DefaultBuildTreeWorkGraph();
            current.set(workGraph);
            try {
                try {
                    return action.apply(workGraph);
                } finally {
                    workGraph.close();
                }
            } finally {
                current.set(previous);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:04:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. subprojects/composite-builds/src/test/groovy/org/gradle/composite/internal/DefaultIncludedBuildTaskGraphTest.groovy

                f.runWork().rethrow()
            }
    
            then:
            1 * workGraphController.newWorkGraph() >> workGraph
            1 * preparer.prepareToScheduleTasks(_)
            1 * workGraph.populateWorkGraph(_)
            1 * workGraph.finalizeGraph()
            1 * workGraph.runWork() >> ExecutionResult.succeeded()
        }
    
        def "cannot schedule tasks when graph has not been created"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:04:24 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheAwareBuildTreeWorkController.kt

    
    class ConfigurationCacheAwareBuildTreeWorkController(
        private val workPreparer: BuildTreeWorkPreparer,
        private val workExecutor: BuildTreeWorkExecutor,
        private val workGraph: BuildTreeWorkGraphController,
        private val cache: BuildTreeConfigurationCache,
        private val buildRegistry: BuildStateRegistry,
        private val startParameter: ConfigurationCacheStartParameter,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheAwareBuildTreeWorkGraphPreparer.kt

        private val cache: BuildTreeConfigurationCache
    ) : BuildTreeWorkGraphPreparer {
        override fun prepareToScheduleTasks(workGraph: BuildTreeWorkGraph.Builder) {
            if (!cache.isLoaded) {
                delegate.prepareToScheduleTasks(workGraph)
            } // else, not required
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/CachedBuildState.kt

     */
    internal
    class BuildWithWork(
        identityPath: Path,
        val build: ConfigurationCacheBuild,
        rootProjectName: String,
        projects: List<CachedProjectState>,
        val workGraph: ScheduledWork
    ) : BuildWithProjects(identityPath, rootProjectName, projects)
    
    
    /**
     * A build in the tree with no work scheduled.
     */
    internal
    class BuildWithNoWork(
        identityPath: Path,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/internal/build/DefaultBuildLifecycleControllerTest.groovy

            t3 == failure
        }
    
        void testCanExecuteTasksWhenNothingHasBeenScheduled() {
            when:
            def controller = controller()
            def workGraph = controller.newWorkGraph()
            def result = controller.executeTasks(workGraph)
    
            then:
            result.failures.empty
    
            when:
            def finishResult = controller.finishBuild(null)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 11:17:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheState.kt

                readRequiredBuildServicesOf(gradle)
    
                val workGraph = readWorkGraph(gradle)
                readFlowScopeOf(gradle)
                readBuildOutputCleanupRegistrations(gradle)
                return BuildWithWork(build.state.identityPath, build, gradle.rootProject.name, projects, workGraph)
            } else {
                return BuildWithNoProjects(build.state.identityPath)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/DefaultConfigurationCache.kt

            return loadFromCache(StateType.Work) { stateFile ->
                val (buildInvocationId, workGraph) = cacheIO.readRootBuildStateFrom(stateFile, loadAfterStore, graph, graphBuilder)
                LoadResult(stateFile.stateFile.file, buildInvocationId) to workGraph
            }
        }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/worker_api.adoc

    .src/einstein.txt
    [source,text]
    ----
    include::{snippetsPath}/workerApi/md5CustomTask/groovy/src/einstein.txt[]
    ----
    
    .src/feynman.txt
    [source,text]
    ----
    include::{snippetsPath}/workerApi/md5CustomTask/groovy/src/feynman.txt[]
    ----
    
    .src/hawking.txt
    [source,text]
    ----
    include::{snippetsPath}/workerApi/md5CustomTask/groovy/src/hawking.txt[]
    ----
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 28 13:41:08 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WaitForCompletionWorkerExecutorSampleIntegrationTest.groovy

    import org.gradle.util.internal.TextUtil
    
    @IntegrationTestTimeout(60)
    class WaitForCompletionWorkerExecutorSampleIntegrationTest extends AbstractWorkerExecutorSampleIntegrationTest {
        String getSampleName() {
            "workerApi/waitForCompletion"
        }
    
        @Override
        void assertSampleSpecificOutcome(String dsl) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top