Back

Function schedule not working accurately

  • 0
  • Functions
  • Cloud
Zionnite
9 Jun, 2024, 03:28

hello guys, i created a function and I set the schedule to run every 1hour but it is being run every minutes, here is my json

TypeScript
            "$id": "66650d7e6de10dd97079",
            "name": "statusStory24hoursCompletion",
            "runtime": "node-16.0",
            "execute": ["any"],
            "events": [],
            "schedule": "* */1 * * *",
            "timeout": 900,
            "enabled": true,
            "logging": true,
            "entrypoint": "src/main.js",
            "commands": "npm install",
            "ignore": [
                "node_modules",
                ".npm"
            ],
            "path": "functions/statusStory24hoursCompletion"
        }```

is there anything i'm getting wrong here?
TL;DR
Function set to run every 1 hour but running every minute. Developer set schedule incorrectly. Use `"schedule": "0 * * * *"` for hourly schedule.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more