I am using below code to create recurring job. I need get the job context to update progress bar. Is there any way to do that?
@Job(name = "xxx")
@Recurring(id = "xxx")
public void execute(){
//do thing here.
}
I am using below code to create recurring job. I need get the job context to update progress bar. Is there any way to do that?
@Job(name = "xxx")
@Recurring(id = "xxx")
public void execute(){
//do thing here.
}
You can just create your recurring job as follows:
@Job(name = "xxx")
@Recurring(id = "xxx")
public void execute(JobContext jobContext){
//do thing here.
}
It will automatically be injected by JobRunr.