public class CustomJobManager extends DefaultJobManager {
public CustomJobManager(JobServiceConfiguration jobServiceConfiguration) {
super(jobServiceConfiguration);
}
@Override
protected void fillDefaultAsyncJobInfo(JobEntity jobEntity, boolean exclusive) {
jobEntity.setCategory("myCustomJobCategory");
super.fillDefaultAsyncJobInfo(jobEntity, exclusive);
}
}
I have this extended class from DefaultJobManager and overried method fillDefaultAsyncJobInfo does this mean every job I have created will have “myCustomJobCategory” ? I have two engine using the same database and I want each engine will be execute their own job. One more question is why there are no method such as select job to execute by tenant id ?
My thanks to you guys