Information has been added in the Advanced JavaScript activity section on how to use the task.setCompleted() method to terminate the task and prevent future recalls.
Read here the detailed documentation: SQL code and JavaScript code
In case you have any questions, please feel free to post them below or reach out through the community Q and A section.
In case you have any ideas and/or suggestions regarding the Campaign Classic product, then kindly submit them here.
Sukrity Wadhwa