Home
last modified time | relevance | path

Searched +full:- +full:- +full:retry +full:- +full:delay (Results 1 – 25 of 660) sorted by relevance

12345678910>>...27

/external/python/python-api-core/google/api_core/
Dretry.py7 # http://www.apache.org/licenses/LICENSE-2.0
15 """Helpers for retrying functions with exponential back-off.
17 The :class:`Retry` decorator can be used to retry functions that raise
19 used, the retry is limited by a `deadline`. The deadline is the maxmimum amount
24 By default, this decorator will retry transient
27 .. code-block:: python
29 @retry.Retry()
33 # Will retry flaky_rpc() if it raises transient API errors.
36 You can pass a custom predicate to retry on different exceptions, such as
39 .. code-block:: python
[all …]
Dretry_async.py7 # http://www.apache.org/licenses/LICENSE-2.0
15 """Helpers for retrying coroutine functions with exponential back-off.
18 :class:`Retry`, but supports coroutine functions. Please refer to description
19 of :class:`Retry` for more details.
21 By default, this decorator will retry transient
24 .. code-block:: python
30 # Will retry flaky_rpc() if it raises transient API errors.
33 You can pass a custom predicate to retry on different exceptions, such as
36 .. code-block:: python
44 Some client library methods apply retry automatically. These methods can accept
[all …]
/external/mesa3d/.gitlab-ci/container/
Dbaremetal_build.sh3 set -e
4 set -o xtrace
6 # Fetch the arm-built rootfs image and unpack it in our x86_64 container (saves
10 if curl -X HEAD -s "${ARTIFACTS_PREFIX}/${FDO_UPSTREAM_REPO}/${ARTIFACTS_SUFFIX}/${arch}/done"; then
16 curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
17 "${ARTIFACTS_URL}"/lava-rootfs.tar.zst -o rootfs.tar.zst
18 mkdir -p /rootfs-"$arch"
19 tar -C /rootfs-"$arch" '--exclude=./dev/*' --zstd -xf rootfs.tar.zst
23 mkdir -p /baremetal-files
24 pushd /baremetal-files
[all …]
Dbuild-kernel.sh5 set -ex
7 mkdir -p kernel
11 KERNEL_IMAGE_NAME+=" cheza-kernel"
15 curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
16 -o "/lava-files/${image}" "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${image}"
20 curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
21 -o "/lava-files/${dtb}" "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${dtb}"
24 mkdir -p "/lava-files/rootfs-${DEBIAN_ARCH}"
25 curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
26 -O "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/modules.tar.zst"
[all …]
/external/aws-sdk-java-v2/services/ec2/src/main/resources/codegen-resources/
Dwaiters-2.json5 "delay": 5, number
18 "state": "retry"
23 "delay": 15, number
42 "delay": 15, number
55 "delay": 15, number
80 "delay": 15, number
93 "delay": 15, number
118 "delay": 15, number
131 "delay": 15, number
146 "delay": 15, number
[all …]
/external/sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/retrying/
DRetrySettings.java39 * Holds the parameters for <b>retry</b> or <b>poll</b> logic with jitter, timeout and exponential
52 * <p>Retry delay and timeout start at specific values, and are tracked separately from each other.
55 * <p>If the last remote call is a failure, then the retrier will wait for the current retry delay
56 * before attempting another call, and then the retry delay will be multiplied by the retry delay
83 * InitialRetryDelay controls the delay before the first retry. Subsequent retries will use this
90 * RetryDelayMultiplier controls the change in retry delay. The retry delay of the previous call
91 * is multiplied by the RetryDelayMultiplier to calculate the retry delay for the next call. The
97 * MaxRetryDelay puts a limit on the value of the retry delay, so that the RetryDelayMultiplier
98 * can't increase the retry delay higher than this amount. The default value is {@code
106 * give up retrying even if the total retry time is still lower than TotalTimeout.
[all …]
DTimedAttemptSettings.java36 /** Timed attempt execution settings. Defines time-specific properties of a retry attempt. */
40 /** Returns global (attempt-independent) retry settings. */
44 * Returns the calculated retry delay. Note that the actual delay used for retry scheduling may be
53 * Returns randomized attempt delay. By default this value is calculated based on the {@code
54 * retryDelay} value, and is used as the actual attempt execution delay.
59 * The attempt count. It is a zero-based value (first attempt will have this value set to 0). For
65 * The overall attempt count. It is a zero-based value (first attempt will have this value set to
85 /** Sets global (attempt-independent) retry settings. */
89 * Sets the calculated retry delay. Note that the actual delay used for retry scheduling may be
98 * Sets randomized attempt delay. By default this value is calculated based on the {@code
[all …]
/external/autotest/utils/frozen_chromite/lib/
Dretry_util.py1 # -*- coding: utf-8 -*-
3 # Use of this source code is governed by a BSD-style license that can be
22 # Match stderr of curl's --fail option to see HTTP status code.
27 """Returns a retry handler for given exception(s).
40 """The strategy of the delay between each retry attempts.
61 """Sleep to delay the current retry."""
64 sleep_duration = self._sleep * self._backoff_factor ** (attempt - 1)
78 """Decorator to handle retry on exception.
91 checks whether the retry should be continued or not based on the given
93 - If |handler| is given, which should be a callback which takes an exception
[all …]
/external/curl/docs/cmdline-opts/
Dretry-delay.md1 ---
3 SPDX-License-Identifier: curl
4 Long: retry-delay
10 See-also:
11 - retry
13 - --retry-delay 5 --retry 7 $URL
14 ---
16 # `--retry-delay`
18 Make curl sleep this amount of time before each retry when a transfer has
20 between retries). This option is only interesting if --retry is also
[all …]
Dretry.md1 ---
3 SPDX-License-Identifier: curl
4 Long: retry
7 Help: Retry request if transient problems occur
10 See-also:
11 - retry-max-time
13 - --retry 7 $URL
14 ---
16 # `--retry`
24 When curl is about to retry a transfer, it first waits one second and then for
[all …]
/external/mesa3d/.gitlab-ci/bare-metal/
Dfastboot.sh6 . "$SCRIPTS_DIR"/setup-test-env.sh
8 BM=$CI_PROJECT_DIR/install/bare-metal
11 if [ -z "$BM_SERIAL" ] && [ -z "$BM_SERIAL_SCRIPT" ]; then
12 …echo "Must set BM_SERIAL OR BM_SERIAL_SCRIPT in your gitlab-runner config.toml [[runners]] environ…
20 if [ -z "$BM_POWERUP" ]; then
21 echo "Must set BM_POWERUP in your gitlab-runner config.toml [[runners]] environment"
27 if [ -z "$BM_POWERDOWN" ]; then
28 echo "Must set BM_POWERDOWN in your gitlab-runner config.toml [[runners]] environment"
33 if [ -z "$BM_FASTBOOT_SERIAL" ]; then
34 echo "Must set BM_FASTBOOT_SERIAL in your gitlab-runner config.toml [[runners]] environment"
[all …]
Dpoe-powered.sh7 . "$SCRIPTS_DIR"/setup-test-env.sh
13 BM=$CI_PROJECT_DIR/install/bare-metal
18 if [ -z "$BM_SERIAL" ]; then
19 echo "Must set BM_SERIAL in your gitlab-runner config.toml [[runners]] environment"
24 if [ -z "$BM_POE_ADDRESS" ]; then
25 echo "Must set BM_POE_ADDRESS in your gitlab-runner config.toml [[runners]] environment"
30 if [ -z "$BM_POE_INTERFACE" ]; then
31 echo "Must set BM_POE_INTERFACE in your gitlab-runner config.toml [[runners]] environment"
36 if [ -z "$BM_POWERUP" ]; then
37 echo "Must set BM_POWERUP in your gitlab-runner config.toml [[runners]] environment"
[all …]
Dcros-servo.sh10 BM=$CI_PROJECT_DIR/install/bare-metal
15 if [ -z "$BM_SERIAL" ]; then
16 echo "Must set BM_SERIAL in your gitlab-runner config.toml [[runners]] environment"
21 if [ -z "$BM_SERIAL_EC" ]; then
22 echo "Must set BM_SERIAL in your gitlab-runner config.toml [[runners]] environment"
27 if [ ! -d /nfs ]; then
32 if [ ! -d /tftp ]; then
38 if [ -z "$BM_KERNEL" ]; then
43 if [ -z "$BM_ROOTFS" ]; then
48 if [ -z "$BM_CMDLINE" ]; then
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DErrors.kt2 …* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen… in <lambda>()
39 * flow.catch { e -> in <lambda>()
50 * flow.catch { e -> emit(ErrorWrapperValue(e)) } in <lambda>()
54 * retry an original flow use [retryWhen] operator that can retry the flow multiple times without in <lambda>()
55 * introducing ever-growing stack of suspending calls. in <lambda>()
57 public fun <T> Flow<T>.catch(action: suspend FlowCollector<T>.(cause: Throwable) -> Unit): Flow<T> = in <lambda>()
66 * in downstream flow and does not retry on exceptions that are thrown to cancel the flow.
70 …lt value of [retries] parameter is [Long.MAX_VALUE]. This value effectively means to retry forever.
75 * retryWhen { cause, attempt -> attempt < retries && predicate(cause) }
79 * so it can be also used to introduce delay before retry, for example:
[all …]
/external/autotest/server/cros/power/
Dservo_charger.py3 # Use of this source code is governed by a BSD-style license that can be
17 from autotest_lib.client.common_lib.cros import retry
19 # Base delay time in seconds for Servo role change and PD negotiation.
21 # Total delay time in minutes for Servo role change and PD negotiation.
30 # Delay to wait before polling whether the role as been changed successfully.
35 # queried. This delay has proven sufficient to overcome this in the current
86 # retry loop in the autotest framework is to have a 'stable' library i.e.
99 for retry in range(_RETRYS):
102 return retry
104 if retry < _RETRYS - 1:
[all …]
/external/curl/tests/data/
Dtest12694 --retry-delay
9 # Server-side
14 # Client-side
20 too large --retry-delay value
23 --retry 3 --retry-delay 9223372036854776 http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER
/external/mesa3d/.gitlab-ci/container/debian/
Dx86_64_test-android.sh5 set -e
6 set -o xtrace
12 build-essential:native
15 config-package-dev
16 debhelper-compat
17 dpkg-dev
18 ninja-build
25 apt-get install -y --no-remove --no-install-recommends \
30 . .gitlab-ci/container/container_pre_build.sh
36 curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
[all …]
/external/libwebsockets/include/libwebsockets/
Dlws-retry.h2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
26 const uint32_t *retry_ms_table; /* base delay in ms */
37 * lws_retry_get_delay_ms() - get next delay from backoff table
40 * \param retry: the retry backoff table we are using, or NULL for default
46 * next connection retry, according to the backoff table \p retry. *\p conceal is
51 * If \p retry is NULL, a default of 3s + (0..300ms jitter) is used. If it's
52 * non-NULL but jitter_percent is 0, the default of 30% jitter is retained.
56 lws_retry_get_delay_ms(struct lws_context *context, const lws_retry_bo_t *retry,
60 * lws_retry_sul_schedule() - schedule a sul according to the backoff table
[all …]
/external/oss-fuzz/infra/
Dretry.py7 # http://www.apache.org/licenses/LICENSE-2.0
14 """Retry decorator. Copied from ClusterFuzz source."""
22 # pylint: disable=too-many-arguments,broad-except
31 def get_delay(num_try, delay, backoff): argument
32 """Compute backoff delay."""
33 return delay * (backoff**(num_try - 1))
37 delay, argument
41 """Retry decorator for a function."""
43 assert delay > 0
56 """Handle retry."""
[all …]
/external/autotest/server/cros/dynamic_suite/
Dfrontend_wrappers.py2 # Use of this source code is governed by a BSD-style license that can be
13 from autotest_lib.client.common_lib.cros import retry
33 """Compute the number of retry attempts for use with chromite.retry_util.
39 @return: The number of retry attempts in the case of exponential backoff.
42 # => total_sleep = sleep*sum(r=0..max_retry-1, backoff^r)
43 # => total_sleep = sleep( (1-backoff^max_retry) / (1-backoff) )
44 # => max_retry*ln(backoff) = ln(1-(total_sleep/sleep)*(1-backoff))
45 # => max_retry = ln(1-(total_sleep/sleep)*(1-backoff))/ln(backoff)
47 numerator = math.log10(1 - (total_sleep / delay_sec) * (1 - backoff))
55 Timeout for retries and delay between retries are configurable.
[all …]
/external/federated-compute/fcp/client/
Dfederated_protocol_util.h8 * http://www.apache.org/licenses/LICENSE-2.0
33 // Picks an absolute retry time by picking a retry delay from the range
39 // Picks a retry delay and encodes it as a zero-width RetryWindow (where
40 // delay_min and delay_max are set to the same value), from a given target delay
47 // Converts the given absl::Time to a zero-width RetryWindow (where
49 // retry time to a delay relative to the current timestamp.
/external/autotest/client/common_lib/cros/
Dretry.py3 # Use of this source code is governed by a BSD-style license that can be
143 set_sigalarm_timeout(int(old_timeout_time - time.time()),
148 def retry(ExceptionToCheck, timeout_min=1.0, delay_sec=3, raiselist=None, function
150 """Retry calling the decorated function using a delay with jitter.
156 If the retry is done in a child thread, timeout may not be enforced as
157 signal only works in main thread. Therefore, the retry inside a child
161 http://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python/
166 @param delay_sec: pre-jittered base delay between retries in seconds. Actual
174 @param callback: a function to call before each retry.
176 delay. Set to 1 to disable exponential backoff.
[all …]
/external/mesa3d/.gitlab-ci/tests/data/
DUBOOT_force_uart=True_job_definition.yaml1 job_name: 'test-project: my_pipeline_info'
5 - my_visibility_group
13 depthcharge-retry:
15 depthcharge-start:
17 depthcharge-action:
20 - deploy:
28 url: None/lava-rootfs.tar.zst
32 - boot:
34 method: u-boot
36 - 'lava-shell:'
[all …]
/external/trusty/lk/app/timertest/
Dtimertest.c60 static void TimerTestBusyWait(int64_t delay) { in TimerTestBusyWait() argument
61 int64_t end = TimerTestGetTimeNs() + delay; in TimerTestBusyWait()
79 TIMER_INITIAL_VALUE(&t->timer), 0, 0, 0, 0, 0, 0, 0, NULL \
87 * TimerTestTimerCallback - Timer callback function.
105 t->trigger_time_passed = now; in TimerTestTimerCallback()
106 t->handler_run_time = TimerTestGetTimeNs(); in TimerTestTimerCallback()
107 t->arg_passed = arg; in TimerTestTimerCallback()
108 trigger_count = atomic_fetch_add_explicit(&t->trigger_count, 1, in TimerTestTimerCallback()
110 if (t->timer.periodic_time && in TimerTestTimerCallback()
111 trigger_count == t->target_trigger_count) { in TimerTestTimerCallback()
[all …]
/external/rust/crates/tower/src/hedge/
Dmod.rs1 //! Pre-emptively retry requests which have been outstanding for longer
17 mod delay; module
22 use delay::Delay;
31 Delay<DelayPolicy, AsyncFilter<Latency<Histo, S>, PolicyPredicate<P>>>,
34 /// A middleware that pre-emptively retries requests which have been outstanding
36 /// future or the retry future completes, that value is used.
58 fn clone_request(&self, req: &Request) -> Option<Request>; in clone_request()
60 /// Called after the hedge timeout to determine if the hedge retry should be issued.
61 fn can_retry(&self, req: &Request) -> bool; in can_retry()
93 ) -> Hedge<S, P> in new()
[all …]

12345678910>>...27