Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for RecordEvent (0.17 sec)

  1. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/multilock.go

    	if err != nil && kerrors.IsNotFound(err) {
    		return ml.Secondary.Create(ctx, ler)
    	}
    	return ml.Secondary.Update(ctx, ler)
    }
    
    // RecordEvent in leader election while adding meta-data
    func (ml *MultiLock) RecordEvent(s string) {
    	ml.Primary.RecordEvent(s)
    	ml.Secondary.RecordEvent(s)
    }
    
    // Describe is used to convert details on current resource lock
    // into a string
    func (ml *MultiLock) Describe() string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  2. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/endpointslock.go

    	e, err := el.Client.Endpoints(el.EndpointsMeta.Namespace).Update(ctx, el.e, metav1.UpdateOptions{})
    	if err != nil {
    		return err
    	}
    	el.e = e
    	return nil
    }
    
    // RecordEvent in leader election while adding meta-data
    func (el *EndpointsLock) RecordEvent(s string) {
    	if el.LockConfig.EventRecorder == nil {
    		return
    	}
    	events := fmt.Sprintf("%v %v", el.LockConfig.Identity, s)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 11 16:58:48 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  3. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/leaselock.go

    	if err != nil {
    		return err
    	}
    
    	ll.lease = lease
    	return nil
    }
    
    // RecordEvent in leader election while adding meta-data
    func (ll *LeaseLock) RecordEvent(s string) {
    	if ll.LockConfig.EventRecorder == nil {
    		return
    	}
    	events := fmt.Sprintf("%v %v", ll.LockConfig.Identity, s)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jun 04 16:02:26 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/stream_executor/stream_executor_test_util.cc

      *event = nullptr;
    }
    void DestroyEvent(const SP_Device* const device, SP_Event event) {}
    SE_EventStatus GetEventStatus(const SP_Device* const device, SP_Event event) {
      return SE_EVENT_UNKNOWN;
    }
    void RecordEvent(const SP_Device* const device, SP_Stream stream,
                     SP_Event event, TF_Status* const status) {}
    void WaitForEvent(const SP_Device* const device, SP_Stream stream,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 21 20:09:00 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. pilot/pkg/leaderelection/k8sleaderelection/healthzadaptor_test.go

    }
    
    // Update is a dummy to allow us to have a fakeLock for testing.
    func (fl *fakeLock) Update(ctx context.Context, ler rl.LeaderElectionRecord) error {
    	return nil
    }
    
    // RecordEvent is a dummy to allow us to have a fakeLock for testing.
    func (fl *fakeLock) RecordEvent(string) {}
    
    // Identity is a dummy to allow us to have a fakeLock for testing.
    func (fl *fakeLock) Identity() string {
    	return fl.identity
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 12 18:41:53 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_host_send_device_context.cc

      auto status = stream_->Memcpy(device_memory_base_, cpu_tensor->data(),
                                    device_memory_base_->size());
      if (!status.ok()) {
        done(status);
        return;
      }
      status = stream_->RecordEvent(done_event_.get().get());
      if (!status.ok()) {
        done(status);
        return;
      }
      if (auto st = stream_->BlockHostUntilDone(); !st.ok()) {
        done_event_.SetError(absl::InternalError(absl::StrFormat(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/configmaplock.go

    	if err != nil {
    		return err
    	}
    	cml.cm = cm
    	return nil
    }
    
    // RecordEvent in leader election while adding meta-data
    func (cml *ConfigMapLock) RecordEvent(s string) {
    	if cml.LockConfig.EventRecorder == nil {
    		return
    	}
    	events := fmt.Sprintf("%v %v", cml.LockConfig.Identity, s)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 11 16:58:48 UTC 2021
    - 4K bytes
    - Viewed (0)
  8. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/interface.go

    	Create(ctx context.Context, ler LeaderElectionRecord) error
    
    	// Update will update and existing LeaderElectionRecord
    	Update(ctx context.Context, ler LeaderElectionRecord) error
    
    	// RecordEvent is used to record events
    	RecordEvent(string)
    
    	// Identity will return the locks Identity
    	Identity() string
    	Key() string
    
    	// Describe is used to convert details on current resource lock
    	// into a string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_host_recv_device_context.cc

      status = stream_->Memcpy(cpu_tensor->data(), device_memory_base_,
                               device_memory_base_.size());
      if (!status.ok()) {
        done(status);
        return;
      }
      status = stream_->RecordEvent(done_event_.get().get());
      if (!status.ok()) {
        done(status);
        return;
      }
      if (auto st = stream_->BlockHostUntilDone(); !st.ok()) {
        done_event_.SetError(absl::InternalError(absl::StrFormat(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/stream_executor/stream_executor_internal.h

                                            c_status.get());
        absl::Status status = tensorflow::StatusFromTF_Status(c_status.get());
        CheckStatus(status);
        return status;
      }
    
      absl::Status RecordEvent(Event* event) override {
        return static_cast<CEvent*>(event)->Record(stream_handle_);
      }
    
      absl::Status WaitFor(Stream* other) override {
        tensorflow::TF_StatusPtr c_status(TF_NewStatus());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top