package org.mwg.core.scheduler;

import org.mwg.plugin.Job;
import org.mwg.plugin.Scheduler;

public class NoopScheduler implements Scheduler {

    @Override
    public void dispatch(byte affinity, Job job) {
        job.run();
    }

    @Override
    public void start() {
        //noop
    }

    @Override
    public void stop() {
        //noop
    }

    @Override
    public int workers() {
        return 1;
    }

}

@@ -215,18 +215,113 @@
     
-job.run();
+try %7B%0A            job.run();%0A        %7D catch (Exception ec) %7B%0A            ec.printStackTrace();%0A        %7D
 %0A   

handle exceotion in job executed in NoopScheduler