Questions tagged [cron-task]

The cron-task is a scheduled task that can be in the form of a command or shell script, which is executed at specific times or dates by the cron scheduler.

Is it possible for a cronjob to run continuously for a span of 30 minutes?

Recently, I developed a PHP script that generates cache files from an API. Unfortunately, the process takes about 30 minutes to complete loading all the necessary files for the page. I reached out to my hostinger's customer support team who advised m ...

Executing a NestJs cron job at precise intervals three times each day: a guide

I am developing a notifications trigger method that needs to run three times per day at specific times. Although I have reviewed the documentation, I am struggling to understand the regex code and how to customize it according to my requirements! Current ...

Resetting memory variables with Node.js: A step-by-step guide

I'm looking to reset all the variables in my Node.js application using the npm package node cron (https://www.npmjs.com/package/node-cron). Specifically, I need help with ensuring that my arrays are cleared out properly. While the package works well and m ...

Launch the Node.js server by setting up a scheduled task using cron

I have recently developed an API in node.js, and it is now live in production. However, I find myself constantly needing to open Cpanel and the terminal to manually start the API using commands. I am looking for a way to run a one-time command in the termi ...