apify 4.0.0-beta.125 → 4.0.0-beta.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actor.js +8 -8
- package/package.json +3 -3
package/dist/actor.js
CHANGED
|
@@ -9,7 +9,6 @@ import { ACTOR_ENV_VARS, ACTOR_EVENT_NAMES, APIFY_ENV_VARS, INTEGER_ENV_VARS, ME
|
|
|
9
9
|
import { decryptInputSecrets } from '@apify/input_secrets';
|
|
10
10
|
import log from '@apify/log';
|
|
11
11
|
import { addTimeoutToPromise } from '@apify/timeout';
|
|
12
|
-
import { timeoutPromise } from '@apify/utilities';
|
|
13
12
|
import { parseArgument } from '@apify/validations';
|
|
14
13
|
import { ApifyFileSystemStorageBackend } from './apify_file_system_storage_backend.js';
|
|
15
14
|
import { ApifyStorageBackend } from './apify_storage_backend.js';
|
|
@@ -701,13 +700,14 @@ export class Actor {
|
|
|
701
700
|
}
|
|
702
701
|
});
|
|
703
702
|
// Waiting for all the listeners to finish, as `.reboot()` kills the container.
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
703
|
+
await addTimeoutToPromise(async () => {
|
|
704
|
+
await Promise.all([
|
|
705
|
+
// `persistState` for individual RequestLists, RequestQueue... instances to be persisted
|
|
706
|
+
...callListeners(EventType.PERSIST_STATE, { isMigrating: true }),
|
|
707
|
+
// `migrating` to pause Apify crawlers
|
|
708
|
+
...callListeners(EventType.MIGRATING, {}),
|
|
709
|
+
]);
|
|
710
|
+
}, timeoutSecs * 1000, `Pre-reboot event listeners did not finish within ${timeoutSecs} seconds, proceeding with the reboot`).catch((err) => log.warning(err.message));
|
|
711
711
|
const runId = this.configuration.actorRunId;
|
|
712
712
|
try {
|
|
713
713
|
await this.apifyClient.run(runId).reboot();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.127",
|
|
4
4
|
"description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.13.0"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@apify/input_secrets": "^2.0.9",
|
|
59
59
|
"@apify/log": "^3.0.2",
|
|
60
60
|
"@apify/pseudo_url": "^3.0.2",
|
|
61
|
-
"@apify/timeout": "^1.0
|
|
61
|
+
"@apify/timeout": "^1.1.0",
|
|
62
62
|
"@apify/utilities": "^3.1.1",
|
|
63
63
|
"@apify/validations": "^1.1.4",
|
|
64
64
|
"@crawlee/core": "4.0.0-rc.2",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"devEngines": {
|
|
96
96
|
"packageManager": {
|
|
97
97
|
"name": "pnpm",
|
|
98
|
-
"version": "12.
|
|
98
|
+
"version": "12.23.0",
|
|
99
99
|
"onFail": "warn"
|
|
100
100
|
}
|
|
101
101
|
},
|