Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
switch to have a cron every day
Browse files
server.js
CHANGED
@@ -31,7 +31,7 @@ cron.schedule("0 * * * *", async () => {
|
|
31 |
console.info(response?.message)
|
32 |
});
|
33 |
|
34 |
-
cron.schedule("0
|
35 |
console.log('Updating models')
|
36 |
const request = await fetch(`http://${process.env.SPACE_HOST}/api/models`, {
|
37 |
method: 'PATCH',
|
|
|
31 |
console.info(response?.message)
|
32 |
});
|
33 |
|
34 |
+
cron.schedule("0 8 * * *", async () => {
|
35 |
console.log('Updating models')
|
36 |
const request = await fetch(`http://${process.env.SPACE_HOST}/api/models`, {
|
37 |
method: 'PATCH',
|