Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withParallelThreads (0.21 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/ParallelTaskExecutionIntegrationTest.groovy

                    }
                }
            """
        }
    
        void withParallelThreads(int threadCount) {
            executer.beforeExecute {
                withArgument("--max-workers=$threadCount")
            }
        }
    
        def "overlapping outputs prevent parallel execution"() {
            given:
            withParallelThreads(2)
    
            and:
            buildFile << """
                aPing.outputs.dir "dir"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 14:00:51 UTC 2024
    - 21K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceParallelExecutionIntegrationTest.groovy

                    }
                }
            """
        }
    
        @ToBeFixedForIsolatedProjects(because = "allprojects")
        def "tasks run in parallel when no max usages specified"() {
            given:
            withParallelThreads(2)
    
            buildFile << """
                def service = gradle.sharedServices.registerIfAbsent("exclusive", BuildService) {}
    
                allprojects {
                    ping.usesService(service)
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top