@@ -1862,10 +1862,12 @@ export class RunQueue {
1862
1862
// Call this every 10 minutes
1863
1863
private async scanConcurrencySets ( ) {
1864
1864
if ( this . abortController . signal . aborted ) {
1865
+ this . logger . info ( "Abort signal received, skipping concurrency scan" ) ;
1866
+
1865
1867
return ;
1866
1868
}
1867
1869
1868
- this . logger . debug ( "Scanning concurrency sets for completed runs" ) ;
1870
+ this . logger . info ( "Scanning concurrency sets for completed runs" ) ;
1869
1871
1870
1872
const stats = {
1871
1873
streamCallbacks : 0 ,
@@ -1918,7 +1920,7 @@ export class RunQueue {
1918
1920
return ;
1919
1921
}
1920
1922
1921
- this . logger . debug ( "Processing concurrency keys from stream" , {
1923
+ this . logger . info ( "Processing concurrency keys from stream" , {
1922
1924
keys : uniqueKeys ,
1923
1925
} ) ;
1924
1926
@@ -1988,27 +1990,29 @@ export class RunQueue {
1988
1990
}
1989
1991
1990
1992
private async processCurrentConcurrencyRunIds ( concurrencyKey : string , runIds : string [ ] ) {
1991
- this . logger . debug ( ` Processing concurrency set with ${ runIds . length } runs` , {
1993
+ this . logger . info ( " Processing concurrency set with runs" , {
1992
1994
concurrencyKey,
1993
- runIds : runIds . slice ( 0 , 5 ) , // Log first 5 for debugging
1995
+ runIds : runIds . slice ( 0 , 5 ) , // Log first 5 for debugging,
1996
+ runIdsLength : runIds . length ,
1994
1997
} ) ;
1995
1998
1996
1999
// Call the callback to determine which runs are completed
1997
2000
const completedRuns = await this . options . concurrencySweeper ?. callback ( runIds ) ;
1998
2001
1999
2002
if ( ! completedRuns ) {
2000
- this . logger . debug ( "No completed runs found in concurrency set" , { concurrencyKey } ) ;
2003
+ this . logger . info ( "No completed runs found in concurrency set" , { concurrencyKey } ) ;
2001
2004
return ;
2002
2005
}
2003
2006
2004
2007
if ( completedRuns . length === 0 ) {
2005
- this . logger . debug ( "No completed runs found in concurrency set" , { concurrencyKey } ) ;
2008
+ this . logger . info ( "No completed runs found in concurrency set" , { concurrencyKey } ) ;
2006
2009
return ;
2007
2010
}
2008
2011
2009
- this . logger . debug ( ` Found ${ completedRuns . length } completed runs to mark for ack` , {
2012
+ this . logger . info ( " Found completed runs to mark for ack" , {
2010
2013
concurrencyKey,
2011
2014
completedRunIds : completedRuns . map ( ( r ) => r . id ) . slice ( 0 , 5 ) ,
2015
+ completedRunIdsLength : completedRuns . length ,
2012
2016
} ) ;
2013
2017
2014
2018
// Mark the completed runs for acknowledgment
@@ -2032,7 +2036,7 @@ export class RunQueue {
2032
2036
2033
2037
const count = await this . redis . zadd ( markedForAckKey , ...args ) ;
2034
2038
2035
- this . logger . debug ( ` Marked ${ count } runs for acknowledgment` , {
2039
+ this . logger . info ( " Marked runs for acknowledgment" , {
2036
2040
markedForAckKey,
2037
2041
count,
2038
2042
} ) ;
0 commit comments