) cancel tasks by using unregister_task method from the facade of the pt.hive.colony.plugins.misc.scheduler plugin.
The first and only argument is the task structure.
Here goes a simple example of the unregister task usage.
import time
def task():
print "Hello World"
scheduler_plugin = plugin_manager.get_plugin_by_id("pt.hive.colony.plugins.misc.scheduler")
current_time = time.time()
task_class = scheduler_plugin.get_task_class()
task_arguments = {}
task_arguments["method"] = task
task_arguments["method_arguments"] = []
build_automation_task = task_class("method_call", task_arguments)
scheduler_plugin.register_task_absolute(build_automation_task, current_time + 5)
scheduler_plugin.unregister_task(build_automation_task)