'Cancel a task in the current Cron instance.
If a task with the given name does not exist,
ignore the request.
Keyword arguments:
name -- The name of the task to cancel'

def cancel_task(self, name):

    if (name in self.schedule):
        with self.lock:
            del self.schedule[name]
            self.__recalculateSleep()
