File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Apify.main(async () => {
12
12
// @ts -ignore It's not null
13
13
const input = await Apify . getInput ( ) ;
14
14
15
+ const { maxConcurrentDomainsChecked, urlsToCheck } = input ;
16
+
15
17
// Log the input
16
18
log . info ( 'Input provided:' ) ;
17
19
log . debug ( inspect ( input , false , 4 ) ) ;
@@ -36,15 +38,13 @@ Apify.main(async () => {
36
38
} , 10_000 ) ;
37
39
38
40
state . preparedConfigs = convertInputToActorConfigs ( input ) ;
39
- state . totalUrls = input . urlsToCheck . length ;
41
+ state . totalUrls = urlsToCheck . length ;
40
42
41
43
log . info ( `Preparing to process ${ state . totalUrls } URLs...\n` ) ;
42
44
43
45
// Check for revivals first, in the event the actor crashed, and handle those to the end
44
46
await revivePendingConfigs ( state ) ;
45
47
46
- const { maxConcurrentDomainsChecked } = input ;
47
-
48
48
while ( true ) {
49
49
// Each element of domainsToCheck represents a URL with its own run configurations
50
50
const domainsToCheck = state . preparedConfigs . splice ( 0 , maxConcurrentDomainsChecked ) ;
You can’t perform that action at this time.
0 commit comments