-
Which package is this bug report for? If unsure which one to select, leave blank@crawlee/core Issue descriptionWhen I run my code, it outputs to Code sampleconst config = new Configuration({
purgeOnStart: true,
persistStateIntervalMillis: 10_000,
storageClientOptions: {
localDataDirectory: path.join(__dirname, ".tmp", "crawlee-data"),
},
});
// Run code
// Writes to ./storage where this code was run. But not for `key_value_stores` and `request_queues`, which are in `.tmp/crawlee-data`.
|
Beta Was this translation helpful? Give feedback.
Answered by
B4nan
Nov 25, 2023
Replies: 1 comment 1 reply
-
Creating the config instance itself is not enough, you need to use it in all the methods touching the storage. Alternatively, you can modify the global config instance:
Also this needs to happen before you touch any storage API. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jo-sip
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating the config instance itself is not enough, you need to use it in all the methods touching the storage. Alternatively, you can modify the global config instance:
Also this needs to happen before you touch any storage API.