You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: make storage purging default, add --resurrect (#729)
BREAKING CHANGE:
Purging is now enabled by default, bringing the `run` command in sync with Crawlee v3+ behavior (meaning you no longer need to provide `--purge` when starting your actors.). Use the `--resurrect` flag (or `--no-purge`) to keep the storage folder intact.
The `purge-queue`, `purge-dataset` and `purge-key-value-store` flags have been removed, and the logic of all three was combined into the `purge` flag.
'Shortcut that combines the --purge-queue, --purge-dataset and --purge-key-value-store options.',
63
+
'Whether to purge the default request queue, dataset and key-valuestore before the run starts.\nFor crawlee projects, this is the default behavior, and the flag is optional.\nUse `--no-purge` to keep the storage folder intact.',
64
64
required: false,
65
+
default: true,
66
+
exclusive: ['resurrect'],
65
67
}),
66
-
'purge-queue': Flags.boolean({
67
-
description: 'Deletes the local directory containing the default request queue before the run starts.',
68
-
required: false,
69
-
}),
70
-
'purge-dataset': Flags.boolean({
71
-
description: 'Deletes the local directory containing the default dataset before the run starts.',
72
-
required: false,
73
-
}),
74
-
'purge-key-value-store': Flags.boolean({
68
+
resurrect: Flags.boolean({
75
69
description:
76
-
'Deletes all records from the default key-value store in the local directory before the run starts, except for the "INPUT" key.',
70
+
'Whether to keep the default request queue, dataset and key-value store before the run starts.',
77
71
required: false,
72
+
default: false,
73
+
exclusive: ['purge'],
78
74
}),
79
75
entrypoint: Flags.string({
80
76
description: [
81
77
'Optional entrypoint for running with injected environment variables.',
82
78
'\n',
83
79
'For Python, it is the module name, or a path to a file.',
84
80
'\n',
85
-
'For node.js, it is the npm script name, or a path to a JS/MJS file.',
81
+
'For Node.js, it is the npm script name, or a path to a JS/MJS file.',
86
82
'You can also pass in a directory name, provided that directory contains an "index.js" file.',
0 commit comments