Task Scheduler

From TCAdmin 2.0 Documentation

Task Scheduler is a module that provides the ability to schedule the launch of programs or scripts at pre-defined times. A task is automatically created when a service created, reinstalled or deleted.

Contents

Scheduled Tasks

These are single tasks that have been scheduled to run once or have already executed. To execute a task manually simply click on it and click on Start. If you start a task that has previously failed it will continue at the action that caused the error.

ScheduledTasks.png

Recurring Tasks

These are custom tasks that are programmed to run one or more times. When a recurring task is created, it will also create a scheduled task that will execute at the configured time. When the scheduled task is executed it will create a new scheduled task according to the recurring task's schedule.

Schedule

One Time
The task will only run once at the specified time. If the task has already executed you can schedule it again simply by updating the start time.
Daily
The task will run once a day at the specified time. It can also be configured to run every other day, every 3 days, etc by using the "recur every x days" field.
Weekly
The task will run every week on the specified days and time. It can also be configured to run every other week, every 3 weeks, etc by using the "recur every x weeks" field.
Monthly
The task will run on the selected months on the specified days and time.

Actions

Each recurring task can have one or more actions that execute on the specified server. If one action fails the task execution will be cancelled and set to error status.

Action Chaining

Some actions can work with the results from previous actions. For example you can configure a task that does the following:

  1. Backup the database
  2. Compress the database backup file
  3. Upload the compressed file to an FTP server