Added queing system to the UI
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import processQueue from './actions/processQueue';
|
||||
class CronWorker {
|
||||
interval: number;
|
||||
is_running: boolean;
|
||||
@@ -23,7 +24,9 @@ class CronWorker {
|
||||
this.is_running = false;
|
||||
}
|
||||
|
||||
async loop() {}
|
||||
async loop() {
|
||||
await processQueue();
|
||||
}
|
||||
}
|
||||
|
||||
// it automatically starts the loop
|
||||
|
||||
Reference in New Issue
Block a user