Am currently working on Refactoring Daemon.executeScheduledTask(Task) to Daemon.executeScheduledTask(Integer id) and here is my Pull Request.
Although for those failing Travis CI tests I have tried to add .getTaskDefinition().getId() so as to have them pass, i seem to get a compilation error as in this pastebin log and failed to get a solution yet.
@odorajonathan, you possibly want to take advantage of method overloading to solve the ticket and further issues you are running into at the moment. Something like,
public static void executeScheduledTask(Integer id) {
...
....
Daemon.executeScheduledTask(Task);
}