Prevent scheduled task configuration from staging

Stephen D'Olier asked on January 2, 2019 07:01

Hi,

In a staging/production environment, we would like to prevent scheduled task configuration from being included in the content synchronisation.

We have created a module that sets the LogSychronization to None, but this does not prevent a change to the scheduled tasks triggering a sync task.

CMS.Scheduler.TaskInfo.TYPEINFO.SynchronizationSettings.LogSynchronization = CMS.DataEngine.SynchronizationTypeEnum.None;

What would be the best way to go about this?

Thanks, Stephen

Recent Answers


Juraj Ondrus answered on January 2, 2019 08:18

Hi,
Have you tried following the idea from this KB article on how to affect logging of staging tasks? So, you will be checking e.g. the CMS.ScheduledTask object type and then check e.g. its code name and decide whether to log staging task or not.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.