forceCloud
behavior confusing. Is this feature still available? None of these statements from the SDK docs seem to hold true currently, with the SDK:Note that you can force usage of the cloud storage also by passing the forceCloud option to Dataset.open function, even if the APIFY_LOCAL_STORAGE_DIR variable is set.
Dataset stores its data either on local disk or in the Apify cloud, depending on whether the APIFY_LOCAL_STORAGE_DIR or APIFY_TOKEN environment variables are set.
StorageManagerOptions
as referenced in the docs?Actor.openDataset
function.import { Actor } from 'apify'; await Actor.init(); const myDataset = await Actor.openDataset("my-happy-dataset", { forceCloud: true }); await myDataset.pushData({ my: 'data' }); await Actor.exit();
apify run