this._scheduler = new Scheduler(_jobManager,
_allFlows,
_mailer,
failureEmail,
successEmail,
_baseClassLoader,
schedule,
backup,
schedulerThreads);
public Scheduler(JobManager jobManager,
FlowManager allKnownFlows,
Mailman mailman,
String jobSuccessEmail,
String jobFailureEmail,
ClassLoader classLoader,
File scheduleFile,
File backupScheduleFile,
int numThreads)
I found two more issues. Here is a list of them.1) I tried setting only one of them (failure / success) and it doesn't work. You have to specify both properties for the emails to go out.
2) When I specify two different emails for success & failure the emails don't go to the respective addresses.The code picks the opposite (success for failure & failure for success). Please see the code snippets below. It just needs to be switched.
public JobExecutorManager(
FlowManager allKnownFlows,
JobManager jobManager,
Mailman mailman,
String jobSuccessEmail,
String jobFailureEmail,
int maxThreads
) {
_jobExecutorManager = new JobExecutorManager(
_allFlows,
_jobManager,
_mailer,
failureEmail,
successEmail,
schedulerThreads
);