312
Views
6
Comments
Solved
Timer Schedule on publish
Application Type
Traditional Web, Reactive

I have timer schedule "when published". According to me it will go for the 1st option, please correct me.

1] Will be execute every time publish 

2] Executed by Scheduler Service 

Which one is more precise and why?   

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

Hi Pradip,

They're both true. Timers are always run by the Scheduler Service (for details see my article here). "When published" means indeed that every time you publish a module containing the timer, the timer will run. Additionally (not mentioned in my article), if you create a new tennant in a multi-tennant application, all "When published" timers will run after creating the new tennant.

2022-05-18 07-58-50
Pradip Chavhan

Hi @Kilian Hekhuis   - Thanks for your valuable reply, I went through your article. It's deep and good to understand all about the timer. 

But can you please let me know the more convenient option from above 2.  

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Pradip,

I'm not sure what you mean by "the more convenient option". You asked which of the two options ("executed every time when published" and "executed by the Scheduler Service") was true, and they are both true, as I wrote. Or do you mean something else?

2024-06-13 07-53-34
Paulo Moreira
 
MVP

Hi Pradip,

Reinforcing Kilian's response, both options are true.

Timers are always executed by the platform's Scheduler Service. "When Published" is one of the Schedule options available when creating a Timer.

Thank you.

Best regards,

Paulo Moreira

2022-05-18 07-58-50
Pradip Chavhan

Thanks to both of you @Kilian Hekhuis, @Paulo Moreira  ma to be more sure & clear this timer topic. 

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

You're most welcome. Please mark the answers that helped you as Solution (you can mark more than one). Thanks!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.