File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -241,10 +241,10 @@ const handleWorker = async () => {
241
241
. set ( { running : false , last_excution : admin . firestore . Timestamp . now ( ) } )
242
242
} finally {
243
243
const lastExcution = queueController . data ( ) . last_excution
244
- if ( differenceInMinutes ( admin . firestore . Timestamp . now ( ) . toDate ( ) , lastExcution . toDate ( ) ) > 2 ) {
244
+ if ( differenceInMinutes ( admin . firestore . Timestamp . now ( ) . toDate ( ) , lastExcution . toDate ( ) ) > 9 ) {
245
245
queueControllerRef . doc ( queueController . id )
246
246
. set ( { running : false , last_excution : admin . firestore . Timestamp . now ( ) } )
247
- logger . info ( '[handleWorker]: changed running to false because has more 2 minutes inactivity' )
247
+ logger . info ( '[handleWorker]: changed running to false because has more 9 minutes inactivity' )
248
248
}
249
249
}
250
250
}
You can’t perform that action at this time.
0 commit comments