Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Subscription run time

Vote:
 
Hi, We want to send out newsletters every Monday at e.g. 6am in the morning. Currently the scheduler can be set to run every e.g. 5 minutes/hours etc. Is there a way to configure the scheduler to only execute on Mondays at a certain time ? (maybe an event that I can trap and set the "Next run time" programmatically to run on Mondays ?) Thanks Danie
#12746
Aug 21, 2006 16:35
Vote:
 
Or, set it to run each day, at the correct time, and in the code you check if it is a monday. If not, you just exit. /Steve
#14823
Aug 21, 2006 17:14
Vote:
 
Hi Steve, thanks for your answer. I thought of the same thing, but don't know where to write this check. The only place that I can think of to write this check is in the the "public void Send(PageData subscriptionPage,PageDataCollection changedPages)" function (SubscriptionPlugIn). But if I do this, then the subscriber will only get the most recent changes made since yesterday the function last executed instead of all the changes over the past 7 days (haven't tested it, so I might be wrong). Thanks, Danie
#14824
Aug 22, 2006 16:41
Vote:
 
Ah, I thought you had your own newsletter implementation. You'll have to write a wrapper around the existing one (which you also have to disable in the scheduler.) Creating a new subscription handler might not be enough, as the search for changed pages is done outside the handler. Hm, tricky. /Steve
#14825
Aug 22, 2006 23:57
Vote:
 
Hi, Maybe I just need to set the service to run every 7 days and set the "Next scheduled date" to 28 Aug 2006 (Monday) and then therefrom the service will execute every Monday. I think this should do the trick. Thanks! Danie
#14826
Aug 23, 2006 14:43
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.