@@ -27,21 +27,10 @@ Apify.main(async () => {
27
27
checkerFinished : false ,
28
28
} ;
29
29
30
- Apify . events . on ( 'migrating' , async ( ) => {
31
- await Apify . setValue ( 'STATE' , state ) ;
32
- } ) ;
33
-
34
30
Apify . events . on ( 'persistState' , async ( ) => {
35
31
await Apify . setValue ( 'STATE' , state ) ;
36
32
} ) ;
37
33
38
- setInterval ( async ( ) => {
39
- await Apify . setValue ( 'STATE' , state ) ;
40
-
41
- log . debug ( 'Internal state:' ) ;
42
- log . debug ( inspect ( state , false , 3 ) ) ;
43
- } , 10_000 ) ;
44
-
45
34
// If we haven't initialized the state yet, do it now
46
35
if ( state . runConfigurations . length === 0 && ! state . checkerFinished ) {
47
36
state . runConfigurations = convertInputToActorConfigs ( input ) ;
@@ -83,16 +72,12 @@ Apify.main(async () => {
83
72
) ;
84
73
log . info ( `You can monitor the status of the run by going to https://console.apify.com/actors/runs/${ result . id } ` ) ;
85
74
actorInput . runId = result . id ;
86
-
87
- // Save the state now
88
- // TODO(vladfrangu): ask Lukas if this is needed
89
- await Apify . setValue ( 'STATE' , state ) ;
90
75
}
91
76
92
77
// Wait for the run to finish
93
78
await waitForRunToFinishAndPushData ( actorInput ) ;
94
79
} ,
95
- handleRequestTimeoutSecs : 2_147_483_647 ,
80
+ handleRequestTimeoutSecs : 2_147_483 ,
96
81
} ) ;
97
82
98
83
// Run the checker
0 commit comments