Hi,

Does anyone know what the proper syntax is to reschedule a job from the console?

I have this job:

        karaf@root()> scheduler:list
        Name             │ Schedule
        ─────────────────┼────────────────────
        MyRefreshJob.357 │ cron(0 59 05 * * ?)

According to the manual 
(https://karaf.apache.org/manual/latest/#_update_scheduling_of_an_existing_job 
<https://karaf.apache.org/manual/latest/#_update_scheduling_of_an_existing_job>)

The reschedule command should look something like:

        karaf@root()> scheduler:reschedule --cron "0 26 10 * * *” 
MyRefreshJob.357                                                                
                                                                          

But that throws an exception. 

        [Karaf local console user karaf] ERROR 
org.apache.karaf.shell.support.ShellUtil - Exception caught while executing 
command
        java.lang.NullPointerException
                at 
org.apache.karaf.scheduler.core.QuartzScheduler.reschedule(QuartzScheduler.java:263)
                at 
org.apache.karaf.scheduler.command.Reschedule.execute(Reschedule.java:80)
                at 
org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)

I have tried several other combinations but I haven’t found anything that works 
yet.

Any help is appreciated.


Cheers,

Erwin

Reply via email to