Quartz scheduler cron

i have a job to be scheduled every "min" minutes ( "min" is a variable that indicates the minutes). I tried the following syntax for the quartz scheduler

String expr = "0 0/"+min+" * * * ?";

the problem is that the job is fired only after "min" and i want it to be scheduled NOW and every "min"

can someone help me please?

Thanks in advance



i find a solution by using this expression

String expr = "2 "+Integer.toString(Calendar.getInstance().get(Calendar.MINUTE)+1)+"/"+min+" * * * ?";

in order to schedule "about" now and after min

Hopes it helps


Need Your Help

Form submit only on second click Jquery

jquery post form-submit

have simple form, post with Jquery, after success validation, must click 2 times, to submit form:

Serialization misbehave when closing Unity

serialization unity3d

I'm using ISerializationCallbackReceiver to serialize my custom interrelated data following tutorial http://blogs.unity3d.com/2014/06/24/serialization-in-unity/ regarding serialization of graph nodes