Skip to content

Scheduling Actions with NodeJS

Original guide · All levels · Server Connect

The Schedule options allow you to create actions that run at scheduled times. The scheduled actions run without the need of your page to be loaded in your browser. This is useful if you want to run da

The Schedule options allow you to create actions that run at scheduled times. The scheduled actions run without the need of your page to be loaded in your browser. This is useful if you want to run daily or hourly tasks. In our example we will show you how to clear the contents of a folder every day.

This option is only available for NodeJS projects.

First, right click Schedule in Server Connect panel:

Then we need to add the steps which should be executed. Right click steps:

Under File Management we select Empty Folder:

Section titled “Under File Management we select Empty Folder:”

Select the folder which contents you want to clear:

Section titled “Select the folder which contents you want to clear:”

Now, after we’ve set up the steps to be executed, we need to setup the schedule for this action.
Click Schedule:

The default Schedule Settings are set to Every 15 minutes. We’d like to set a different period - every day. Open the period menu:

Select the interval - we set this to every 1 day. You can change this according to your needs:

Section titled “Select the interval - we set this to every 1 day. You can change this according to your needs:”

And then we set the time, when the action should be executed every day:

Section titled “And then we set the time, when the action should be executed every day:”

Now our folder will be emptied every day at 17:45.

Section titled “Now our folder will be emptied every day at 17:45.”