Hi,
We are migrating to Ignite 2.0, we have used the cron scheduler in 1.8 but
this has stopped working.
I have traced the exception origin to the assertion at line:177 @
org.apache.ignite.internal.processors.schedule.ScheduleFutureImpl
It will appear that start() @ org.apache.ignite.internal.p
rocessors.schedule.IgniteScheduleProcessor is never called so when line:50
schedule(final Runnable c, String ptrn) is called NULL is passed for the
sched value.
I set the grid name in the IgniteConfiguration and then start Ignite before
I use the following code to start the cron job
private def startScheduler() = {
ignite.scheduler.scheduleLocal(new Runnable() {
override def run() =
try {
Logger.info("Tick tock")
/** Do Stuff! */
}
catch { case e:Exception => Logger.error("I poked, I failed!", e) }
}, "* * * * *")}