Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 75 for stopCh (0.14 sec)

  1. pkg/scheduler/framework/runtime/framework.go

    		o.logger = &logger
    	}
    }
    
    // defaultFrameworkOptions are applied when no option corresponding to those fields exist.
    func defaultFrameworkOptions(stopCh <-chan struct{}) frameworkOptions {
    	return frameworkOptions{
    		metricsRecorder: metrics.NewMetricsAsyncRecorder(1000, time.Second, stopCh),
    		parallelizer:    parallelize.NewParallelizer(parallelize.DefaultParallelism),
    	}
    }
    
    var _ framework.Framework = &frameworkImpl{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  2. pkg/controller/history/controller_history_test.go

    		client := fake.NewSimpleClientset()
    		informerFactory := informers.NewSharedInformerFactory(client, controller.NoResyncPeriodFunc())
    
    		stop := make(chan struct{})
    		defer close(stop)
    		informerFactory.Start(stop)
    		informer := informerFactory.Apps().V1().ControllerRevisions()
    		informerFactory.WaitForCacheSync(stop)
    		for i := range test.revisions {
    			informer.Informer().GetIndexer().Add(test.revisions[i])
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    			go func() {
    				defer wk.Give()
    				stopFn := globalBatchJobsMetrics.trace(batchJobMetricReplication, job.ID, attempts)
    				success := true
    				if err := r.ReplicateFromSource(ctx, api, core, oi, retry); err != nil {
    					// object must be deleted concurrently, allow these failures but do not count them
    					if isErrVersionNotFound(err) || isErrObjectNotFound(err) {
    						return
    					}
    					stopFn(oi, err)
    					batchLogIf(ctx, err)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 56K bytes
    - Viewed (0)
  4. src/runtime/mgc.go

    // gcMode indicates how concurrent a GC cycle should be.
    type gcMode int
    
    const (
    	gcBackgroundMode gcMode = iota // concurrent GC and sweep
    	gcForceMode                    // stop-the-world GC now, concurrent sweep
    	gcForceBlockMode               // stop-the-world GC now and STW sweep (forced by user)
    )
    
    // A gcTrigger is a predicate for starting a GC cycle. Specifically,
    // it is an exit condition for the _GCoff phase.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    	w.Stop()
    
    	// Make sure when we watch from 0 we receive an ADDED event
    	w, err = store.Watch(ctx, key, storage.ListOptions{ResourceVersion: "0", Predicate: storage.Everything})
    	if err != nil {
    		t.Fatalf("Watch failed: %v", err)
    	}
    
    	testCheckResult(t, w, watch.Event{Type: watch.Added, Object: out})
    	w.Stop()
    
    	// Compact previous versions
    	if compaction == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/DefaultServiceRegistryTest.groovy

            def service = Mock(TestStopService)
    
            given:
            registry.add(TestStopService, service)
    
            when:
            registry.close()
    
            then:
            1 * service.stop()
        }
    
        def closeIgnoresServiceWithNoCloseOrStopMethod() {
            registry.add(String, "service")
            registry.getAll(String)
    
            when:
            registry.close()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:53:25 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/devicemanager/manager_test.go

    			require.Equal(t, int64(1), resourceAllocatable.Value(), "Devices of plugin previously registered should be removed.")
    			p2.Stop()
    			p3.Stop()
    			cleanup(t, m, p1)
    		}
    	}
    }
    
    // Tests that the device plugin manager correctly handles registration and re-registration by
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    	for _, containerResult := range killContainerResults {
    		result.AddSyncResult(containerResult)
    	}
    
    	// stop sandbox, the sandbox will be removed in GarbageCollect
    	killSandboxResult := kubecontainer.NewSyncResult(kubecontainer.KillPodSandbox, runningPod.ID)
    	result.AddSyncResult(killSandboxResult)
    	// Stop all sandboxes belongs to same pod
    	for _, podSandbox := range runningPod.Sandboxes {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    	atomic.AddInt32(&s.scanning, 1)
    	defer atomic.AddInt32(&s.scanning, -1)
    
    	var err error
    	stopFn := globalScannerMetrics.log(scannerMetricScanBucketDrive, s.drivePath, cache.Info.Name)
    	defer func() {
    		res := make(map[string]string)
    		if err != nil {
    			res["err"] = err.Error()
    		}
    		stopFn(res)
    	}()
    
    	// Updates must be closed before we return.
    	defer xioutil.SafeClose(updates)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (2)
  10. src/testing/testing.go

    }
    
    // FailNow marks the function as having failed and stops its execution
    // by calling runtime.Goexit (which then runs all deferred calls in the
    // current goroutine).
    // Execution will continue at the next test or benchmark.
    // FailNow must be called from the goroutine running the
    // test or benchmark function, not from other goroutines
    // created during the test. Calling FailNow does not stop
    // those other goroutines.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top