Task Chains is a feature found in the Metasploit Pro version which helps us to schedule tasks and execute them. It is generally used for processes that run periodically, for example, network scanning.
To configure a task, let’s go to Tasks → Chains → New Task Chain.
Provide a name for the Task Chain.
Next, click the ‘+’ sign, as shown in the following screenshot.
Select from the list the task that you want to select. Let us select SCAN.
Next, the configuration task setting will appear as shown below.
Let’s add a task to the Task Chain which is the function that the server has to do after finishing the first task. To schedule the task, click the "Schedule Now" icon.
The following table will be displayed where you can select how often you want to run a task.
At the end, click the Save button to schedule the task chain.