enzostvs HF staff commited on
Commit
48b9816
β€’
1 Parent(s): b0122ad

switch to have a cron every day

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -31,7 +31,7 @@ cron.schedule("0 * * * *", async () => {
31
  console.info(response?.message)
32
  });
33
 
34
- cron.schedule("0 0 */12 * *", async () => {
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',