Spaces:
Paused
Paused
Commit
·
a72922e
1
Parent(s):
9e7da04
uh oh
Browse files- ui/cron/worker.ts +4 -1
ui/cron/worker.ts
CHANGED
@@ -3,7 +3,10 @@ class CronWorker {
|
|
3 |
is_running: boolean;
|
4 |
intervalId: NodeJS.Timeout;
|
5 |
constructor() {
|
6 |
-
|
|
|
|
|
|
|
7 |
this.is_running = false;
|
8 |
this.intervalId = setInterval(() => {
|
9 |
this.run();
|
|
|
3 |
is_running: boolean;
|
4 |
intervalId: NodeJS.Timeout;
|
5 |
constructor() {
|
6 |
+
// Default interval was 1 second (1000 ms)
|
7 |
+
// However this triggers alarms on Hugging Face, so let's use 5
|
8 |
+
this.interval = 5000;
|
9 |
+
|
10 |
this.is_running = false;
|
11 |
this.intervalId = setInterval(() => {
|
12 |
this.run();
|