rr19tech commited on
Commit
8dbbefd
·
verified ·
1 Parent(s): 845cd8b

Updated a custom script to be invoked

Browse files
Files changed (1) hide show
  1. pb_hooks/main.pb.js +4 -1
pb_hooks/main.pb.js CHANGED
@@ -2,6 +2,9 @@
2
  //adding a custom statement to check if things are getting picked up
3
  console.log("---> HOOKS FILE IS ALIVE AND LOADING! <---");
4
 
5
- cronAdd("hello from rrtech", "*/30 * * * *", () => {
6
  console.log("This runs every 30 minutes!");
 
 
 
7
  });
 
2
  //adding a custom statement to check if things are getting picked up
3
  console.log("---> HOOKS FILE IS ALIVE AND LOADING! <---");
4
 
5
+ cronAdd("rrtech-custom", "*/15 * * * *", () => {
6
  console.log("This runs every 30 minutes!");
7
+
8
+ const gradioScript = require(`${__hooks}/ping_api.js`);
9
+ gradioScript.invokeGradioSpace();
10
  });