As noted here https://doc.dynamicweb.dev/manual/dynamicweb10/settings/system/system/scheduledtasks.html there is a reliance on Windows Scheduled Tasks to be installed on the server, in dw9 this was easily solved by calling taskexecute through a Logic App. Is there a similar solution for DW10?
I understand that it is possible to call each task, one at a time, through the API, but wondering if there is a simpler solution.
Developer forum
E-mail notifications
Scheduled Tasks on azure
                                                            
                                                    
                            
                                                    
                        							
                                                    
                                                    
                            
                    Replies
                                                        
                        
							
																					
						+1
                                                            
                            
                        
							
								
																						
							
						Hi,
Not exactly sure what the question is here. You can still execute tasks through Logic Apps, with a Post via the API, instead of a Get via the URL.
Can you put some more words on the need you have?
BR Rasmus Sanggaard
                                                        
                        
															
								
								
															
															
															
								
						Well as mentioned here for DW9 - I call taskexecute: (https://doc.dynamicweb.com/get-started/introduction/installation/deploying-to-microsoft-azure)
- Method: Post
 - Url: yoururl.com/Admin/public/taskexecute.aspx
 - Interval: 5
 - Frequency: Minute
 
And then that makes sure to start each indivual task.
So I am just wondering what I need to setup, to get the same functionality on DW10. It sounds like a post VIA the API is what I need, so what do I call now instead? - I have only been able to find the call for each indivual task, not for the tastexecute that handles calling the other tasks.
                                                            
                            
                        
															
																					
								
								
						Hi all,
DynamicWeb 10 does not rely on an external scheduler. Running scheduled tasks is handled internally through a HostedService that checks whether tasks need to run every minute. For this reason, TaskExecute.aspx does not exist on DW10.
If you need a way to run tasks, you're on the right track with using the Management API. Call the TasksQuery to find tasks and the TaskRunCommand to execute them. This can be done from a Logic App; it only requires an API key from the DynamicWeb backend.
- Jeppe
                                                        
                        
															
								
								
															
															
															
						I wanted to clarify by your message and after looking over the scheduler code that the scheduler does not rely on windows anymore but is handled within .NET now? Is this a correct statement?
                                                            
                            
                        
							
								
																						
							
						Hi,
Yes, as Jeppe mentioned, this is now handled by a hosted service in .NET.
BR Rasmus Sanggaard
You must be logged in to post in the forum