@nebius/js-sdk - v0.2.54
    Preparing search index...

    Interface RetryOptions

    Controls the timeout and retry policy for one logical request.

    All values are milliseconds except RetryOptions.RetryCount. A gRPC deadline in the same call-options object limits the complete request. The SDK uses a 15-minute deadline when you omit it.

    import { Metadata } from '@grpc/grpc-js';
    import {
    BucketService,
    GetBucketRequest,
    } from '@nebius/js-sdk/api/nebius/storage/v1/index';

    async function getBucket(client: BucketService) {
    const call = client.get(
    GetBucketRequest.create({ id: 'bucket-id' }),
    new Metadata(),
    {
    deadline: new Date(Date.now() + 30_000),
    RequestTimeout: 20_000,
    PerRetryTimeout: 5_000,
    RetryCount: 2,
    },
    );
    return call.result;
    }
    interface RetryOptions {
        PerRetryTimeout?: number;
        RequestTimeout?: number;
        RetryCount?: number;
    }

    Hierarchy (View Summary)

    Index
    PerRetryTimeout?: number

    Limits each gRPC attempt.

    The default is 20,000 milliseconds. The overall deadline and RetryOptions.RequestTimeout can shorten an attempt.

    RequestTimeout?: number

    Limits one authenticated request window.

    The default is 60,000 milliseconds.

    RetryCount?: number

    Sets the number of retries after the first attempt.

    The default is 3. Set this value to 0 to make only one attempt.