Disable statistics

Hi, is there is a way to disable statistics, which is saved in storage dir by default?
2 Replies
rare-sapphire
rare-sapphire•3y ago
Hey, you can do this at the start of the script (a bit dirty but works)
import {Statistics} from 'crawlee';
Statistics.prototype.persistState = () => Promise.resolve();
import {Statistics} from 'crawlee';
Statistics.prototype.persistState = () => Promise.resolve();
harsh-harlequin
harsh-harlequinOP•3y ago
Thx!) Already forgot about this issue cause it works with this stats, but will better remove it with your decision 🙂

Did you find this page helpful?