Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 112 for updateStats (0.2 sec)

  1. src/internal/fuzz/fuzz.go

    			stop(err)
    			activeWorkers--
    			if activeWorkers == 0 {
    				return fuzzErr
    			}
    
    		case result := <-c.resultC:
    			// Received response from worker.
    			if stopping {
    				break
    			}
    			c.updateStats(result)
    
    			if result.crasherMsg != "" {
    				if c.warmupRun() && result.entry.IsSeed {
    					target := filepath.Base(c.opts.CorpusDir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  2. pkg/kubelet/server/server_test.go

    }
    func (*fakeKubelet) RlimitStats() (*statsapi.RlimitStats, error) { return nil, nil }
    func (*fakeKubelet) GetCgroupStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, *statsapi.NetworkStats, error) {
    	return nil, nil, nil
    }
    func (*fakeKubelet) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, error) {
    	return nil, nil
    }
    
    type fakeAuth struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet.go

    func (kl *Kubelet) GetCgroupStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, *statsapi.NetworkStats, error) {
    	return kl.StatsProvider.GetCgroupStats(cgroupName, updateStats)
    }
    
    // GetCgroupCPUAndMemoryStats is delegated to StatsProvider, which implements stats.Provider interface
    func (kl *Kubelet) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/helpers_test.go

    				}
    			}
    
    		})
    	}
    }
    
    type fakeSummaryProvider struct {
    	result *statsapi.Summary
    }
    
    func (f *fakeSummaryProvider) Get(ctx context.Context, updateStats bool) (*statsapi.Summary, error) {
    	return f.result, nil
    }
    
    func (f *fakeSummaryProvider) GetCPUAndMemoryStats(ctx context.Context) (*statsapi.Summary, error) {
    	return f.result, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  5. pkg/controller/cronjob/cronjob_controllerv2.go

    			deleteFromActiveList(cronJob, j.UID)
    			updateStatus = true
    		case err != nil:
    			return nil, updateStatus, err
    		}
    		// the job is missing in the lister but found in api-server
    	}
    
    	if cronJob.DeletionTimestamp != nil {
    		// The CronJob is being deleted.
    		// Don't do anything other than updating status.
    		return nil, updateStatus, nil
    	}
    
    	logger := klog.FromContext(ctx)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/crdclient/types.gen.go

    	default:
    		return nil, fmt.Errorf("unsupported type: %v", cfg.GroupVersionKind)
    	}
    }
    
    func updateStatus(c kube.Client, cfg config.Config, objMeta metav1.ObjectMeta) (metav1.Object, error) {
    	switch cfg.GroupVersionKind {
    	case gvk.AuthorizationPolicy:
    		return c.Istio().SecurityV1beta1().AuthorizationPolicies(cfg.Namespace).UpdateStatus(context.TODO(), &apiistioioapisecurityv1beta1.AuthorizationPolicy{
    			ObjectMeta: objMeta,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  7. pkg/controller/cronjob/injection.go

    }
    
    var _ cjControlInterface = &realCJControl{}
    
    func (c *realCJControl) UpdateStatus(ctx context.Context, cj *batchv1.CronJob) (*batchv1.CronJob, error) {
    	return c.KubeClient.BatchV1().CronJobs(cj.Namespace).UpdateStatus(ctx, cj, metav1.UpdateOptions{})
    }
    
    // fakeCJControl is the default implementation of cjControlInterface.
    type fakeCJControl struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 09:37:31 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. tensorflow/cc/training/queue_runner.cc

      if (coord_ != nullptr) {
        coord_->WaitForStop();
      }
      if (!cancel_op_name_.empty()) {
        UpdateStatus(RealRun(sess, cancel_op_name_, false));
      }
      stopped_ = true;
    }
    
    Status QueueRunner::Join() {
      thread_pool_.reset();
      mutex_lock l(mu_);
      return status_;
    }
    
    void QueueRunner::UpdateStatus(const Status& status) {
      {
        mutex_lock l(mu_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. pkg/kube/kclient/clienttest/test_helpers.go

    	res, err := t.c.Update(object)
    	if err != nil {
    		t.t.Fatalf("update %v/%v: %v", object.GetNamespace(), object.GetName(), err)
    	}
    	return res
    }
    
    func (t TestWriter[T]) UpdateStatus(object T) T {
    	t.t.Helper()
    	res, err := t.c.UpdateStatus(object)
    	if err != nil {
    		t.t.Fatalf("update status %v/%v: %v", object.GetNamespace(), object.GetName(), err)
    	}
    	return res
    }
    
    func (t TestWriter[T]) CreateOrUpdate(object T) T {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. pkg/controller/storageversionmigrator/storageversionmigrator.go

    		}
    	} else {
    		// we can't migrate a resource that doesn't exist in the GC
    		_, err = svmc.kubeClient.StoragemigrationV1alpha1().
    			StorageVersionMigrations().
    			UpdateStatus(
    				ctx,
    				setStatusConditions(toBeProcessedSVM, svmv1alpha1.MigrationFailed, migrationFailedStatusReason),
    				metav1.UpdateOptions{},
    			)
    		if err != nil {
    			return err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top