feat: add interval for queue checks
This commit is contained in:
@@ -798,6 +798,10 @@ async function registerRunExecutionWorker() {
|
||||
|
||||
await checkForNewUserQueues();
|
||||
|
||||
setInterval(async () => {
|
||||
await checkForNewUserQueues();
|
||||
}, 10000);
|
||||
|
||||
logger.log('info', 'Run execution worker registered successfully');
|
||||
} catch (error: unknown) {
|
||||
const errorMessage = error instanceof Error ? error.message : String(error);
|
||||
@@ -844,6 +848,10 @@ async function registerAbortRunWorker() {
|
||||
|
||||
await checkForNewAbortQueues();
|
||||
|
||||
setInterval(async () => {
|
||||
await checkForNewAbortQueues();
|
||||
}, 10000);
|
||||
|
||||
logger.log('info', 'Abort run worker registration system initialized');
|
||||
} catch (error: unknown) {
|
||||
const errorMessage = error instanceof Error ? error.message : String(error);
|
||||
|
||||
Reference in New Issue
Block a user