Skip to content

Commit 67404ed

Browse files
committed
chore: requested changes done and tested
1 parent 13eec7c commit 67404ed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

starter/src/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Apify.main(async () => {
6666
maxConcurrency: maxConcurrentDomainsChecked,
6767
requestList,
6868
handleRequestFunction: async ({ request }) => {
69-
const { uniqueKey, userData } = request;
69+
const { userData } = request;
7070
/** @type {{ actorInput: import('../../common/types').PreparedActorConfig }} */
7171
// @ts-expect-error JS-style casting
7272
const { actorInput } = userData;
@@ -83,13 +83,16 @@ Apify.main(async () => {
8383
);
8484
log.info(`You can monitor the status of the run by going to https://console.apify.com/actors/runs/${result.id}`);
8585
actorInput.runId = result.id;
86-
// TODO(vladfrangu): remove this once I confirm the value is updated, so we don't restart runs for no reason
87-
console.log(state.runConfigurations[Number(uniqueKey)]);
86+
87+
// Save the state now
88+
// TODO(vladfrangu): ask Lukas if this is needed
89+
await Apify.setValue('STATE', state);
8890
}
8991

9092
// Wait for the run to finish
9193
await waitForRunToFinishAndPushData(actorInput);
9294
},
95+
handleRequestTimeoutSecs: Number.MAX_SAFE_INTEGER,
9396
});
9497

9598
// Run the checker

0 commit comments

Comments
 (0)