public void executeEvents(){
        if(activeEvents.isEmpty())
            return;
        for(Job event : activeEvents){
            if(event instanceof InterruptableEvent && ((InterruptableEvent)event).shouldEnd() || event instanceof RecurringEvent){
                continue;
            }
            if(((DatedEvent)event).execute() == Job.EXECUTOR_FINALIZE){
                ((DatedEvent)event).finalise();
            }
        }
    }