Multiple job schedule for same MessageListener class

thumbnail
Kailash Yadav, modified 6 Years ago. Regular Member Posts: 211 Join Date: 10/18/11 Recent Posts
Hello,

We want to register multiple scheduler jobs for same custom MessageListener class but it is registering only once. Our requirement is same as Staging scheduler where we can schedule multiple staging publish and LayoutsLocalPublisherMessageListener class invoked for all.Our requirement is like we need to provide some configuration for admin where admin can send different type of emails on different frequency. for e.g. :
  • Promotion type email should be sent to 100 users every week.
  • Password Reset type email should be sent to 1000 users every 3 months
  • Hot offers type email should be sent to 50 users daily 10am
  • ..
  • etc.
This list is not fixed so we provided a configuration option to admin and there admin can add/remove this. We try to register scheduler entry for each record but unfortunately only one job is triggering. Any help how we can achieve this?
​​​​​​​Thanks & Regards,Kailash