X++:
protected void scheduleEmailDistributorJob()
{
SysEmailDistributor emailDistributor = new SysEmailDistributor();
BatchHeader batchHeader;
SysRecurrenceData recurrence;
BatchInfo batchInfo;
batchInfo = emailDistributor.batchInfo();
batchInfo.parmGroupId('');
recurrence = SysRecurrence::defaultRecurrence();
recurrence = SysRecurrence::setRecurrenceNoEnd(recurrence);
recurrence = SysRecurrence::setRecurrenceUnit(recurrence, SysRecurrenceUnit::Minute);
recurrence = conPoke(recurrence, 8, [1]);
batchHeader = BatchHeader::construct();
batchHeader.addTask(emailDistributor);
batchHeader.parmRecurrenceData(recurrence);
batchHeader.parmAlerts(NoYes::No, NoYes::Yes, NoYes::No, NoYes::Yes, NoYes::No);
batchHeader.save();
}