Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for sleepTime (0.34 sec)

  1. pkg/test/echo/server/forwarder/util.go

    	var responsesMu sync.Mutex
    
    	var throttle *time.Ticker
    	qps := int(cfg.Request.Qps)
    	if qps > 0 {
    		sleepTime := time.Second / time.Duration(qps)
    		fwLog.Debugf("Sleeping %v between requests", sleepTime)
    		throttle = time.NewTicker(sleepTime)
    		defer throttle.Stop()
    	}
    
    	g := e.NewGroup()
    	for index := 0; index < cfg.count; index++ {
    		index := index
    		workFn := func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

            long sleepTime = toMillis(pollIntervalInSeconds)
            while(true) {
                try {
                    assertion()
                    return
                } catch (Throwable t) {
                    if (monotonicClockMillis() > expiry) {
                        throw t
                    }
                    sleepTime = Math.min(250, (long) (sleepTime * 1.2))
                    Thread.sleep(sleepTime)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  3. pkg/controller/tainteviction/taint_eviction_test.go

    					}
    
    					sleepTime := item.expectedDeleteTimes[i].timestamp - time.Since(startedAt) + increment
    					if sleepTime < 0 {
    						sleepTime = 0
    					}
    					t.Logf("Sleeping for %v", sleepTime)
    					time.Sleep(sleepTime)
    				}
    
    				for delay, podName := range item.expectedDeleteTimes[i].names {
    					deleted := false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  4. src/runtime/mgcscavenge.go

    	// because of the additional overheads of using scavenged memory.
    	worked *= 1 + scavengeCostRatio
    
    	// sleepTime is the amount of time we're going to sleep, based on the amount
    	// of time we worked, and the sleepRatio.
    	sleepTime := int64(worked / s.sleepRatio)
    
    	var slept int64
    	if s.sleepStub == nil {
    		// Set the timer.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  5. cluster/gce/windows/k8s-node-setup.psm1

              -DestinationPrefix ${GCE_METADATA_SERVER}/32 | Out-Null
        } Catch [Microsoft.PowerShell.Cmdletization.Cim.CimJobException] {
          break
        }
        $sleeptime = 2
        Start-Sleep ${sleeptime}
        ${elapsed} += ${sleeptime}
      }
    }
    
    # Adds a route to the GCE metadata server to every network interface.
    function Add_GceMetadataServerRoute {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 21:13:22 UTC 2024
    - 88.3K bytes
    - Viewed (0)
  6. bin/update_proxy.sh

    ISTIO_ENVOY_ARM_RELEASE_URL=${ISTIO_ENVOY_ARM_RELEASE_URL:-${ISTIO_ENVOY_BASE_URL}/envoy-alpha-${ISTIO_ENVOY_LINUX_VERSION}-arm64.tar.gz}
    SLEEP_TIME=60
    
    printf "Verifying %s is available\n" "$ISTIO_ENVOY_RELEASE_URL"
    until curl --output /dev/null --silent --head --fail "$ISTIO_ENVOY_RELEASE_URL"; do
        printf '.'
        sleep $SLEEP_TIME
    done
    printf '\n'
    
    printf "Verifying %s is available\n" "$ISTIO_ENVOY_ARM_RELEASE_URL"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 28 07:59:44 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. cluster/addons/addon-manager/kube-addons-main.sh

      fi
      end_sec=$(date +"%s")
      len_sec=$((end_sec-start_sec))
      # subtract the time passed from the sleep time
      if [[ ${len_sec} -lt ${ADDON_CHECK_INTERVAL_SEC} ]]; then
        sleep_time=$((ADDON_CHECK_INTERVAL_SEC-len_sec))
        sleep ${sleep_time}
      fi
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 24 18:35:44 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  8. .github/actions/notify-translations/app/main.py

        # Avoid race conditions with multiple labels
        sleep_time = random.random() * 10  # random number between 0 and 10 seconds
        logging.info(
            f"Sleeping for {sleep_time} seconds to avoid "
            "race conditions and multiple comments"
        )
        time.sleep(sleep_time)
    
        # Get PR
        logging.debug(f"Processing PR: #{github_event.pull_request.number}")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Sep 27 23:01:46 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  9. hack/lib/util.sh

    # returns 0 if the shell command get output, 1 otherwise.
    kube::util::wait_for_success(){
      local wait_time="$1"
      local sleep_time="$2"
      local cmd="$3"
      while [ "$wait_time" -gt 0 ]; do
        if eval "$cmd"; then
          return 0
        else
          sleep "$sleep_time"
          wait_time=$((wait_time-sleep_time))
        fi
      done
      return 1
    }
    
    # Example:  kube::util::trap_add 'echo "in trap DEBUG"' DEBUG
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:33 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  10. docs/em/docs/how-to/sql-databases-peewee.md

    ```Python hl_lines="2"
    # Something goes here
    def read_users(skip: int = 0, limit: int = 100):
        # Something goes here
    ```
    
    ## ๐Ÿ”ฌ ๐Ÿ’ โฎ๏ธ ๐Ÿ”
    
    ๐Ÿ‘‰ ๐Ÿ–ผ ๐Ÿ”Œ โž• *โžก ๐Ÿ› ๏ธ* ๐Ÿ‘ˆ ๐Ÿ”ฌ ๐Ÿ“ ๐Ÿญ ๐Ÿ“จ โฎ๏ธ `time.sleep(sleep_time)`.
    
    โšซ๏ธ ๐Ÿ”œ โœ”๏ธ ๐Ÿ’ฝ ๐Ÿ”— ๐Ÿ“‚ โ–ถ๏ธ &amp; ๐Ÿ”œ โŒ› ๐Ÿฅˆ โญ ๐Ÿ™‡ ๐Ÿ”™. &amp; ๐Ÿ”  ๐Ÿ†• ๐Ÿ“จ ๐Ÿ”œ โŒ› ๐Ÿ• ๐Ÿฅˆ ๐ŸŒ˜.
    
    ๐Ÿ‘‰ ๐Ÿ”œ ๐Ÿ’ช โžก๏ธ ๐Ÿ‘† ๐Ÿ’ฏ ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ“ฑ โฎ๏ธ ๐Ÿ’ &amp; FastAPI ๐ŸŽญ โ˜‘ โฎ๏ธ ๐ŸŒ ๐Ÿ’ฉ ๐Ÿ”ƒ ๐Ÿงต.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top