@temporalio/external-storage-gcs-google-sdk
v1.22.0
Published
@google-cloud/storage client for the Temporal GCS external storage driver
Readme
@google-cloud/storage Client for the Temporal GCS External Storage Driver
⚠️ This package is experimental and may be subject to change. ⚠️
@temporalio/external-storage-gcs-google-sdk provides a @google-cloud/storage-backed GcsStorageDriverClient for @temporalio/external-storage-gcs.
@google-cloud/storage is a peer dependency, so the driver uses the same Storage instance (and version) your application already configures.
Usage
npm install @temporalio/external-storage-gcs @temporalio/external-storage-gcs-google-sdk @google-cloud/storageimport { Storage } from '@google-cloud/storage';
import { GcsStorageDriver } from '@temporalio/external-storage-gcs';
import { GoogleCloudGcsStorageDriverClient } from '@temporalio/external-storage-gcs-google-sdk';
const storage = new Storage();
const driver = new GcsStorageDriver({
client: new GoogleCloudGcsStorageDriverClient(storage),
bucket: 'my-temporal-payloads',
});Notes
@google-cloud/storagecannot cancel a request once it is in flight, so anabortSignalis honored only up front (viaAbortSignal.throwIfAborted()): a signal that has already fired prevents the request from starting. An in-flight request is always awaited, so no request is left running in the background.
