Scheduled Endpoints
Simple scheduled endpoints within apps.
Last updated
Was this helpful?
Simple scheduled endpoints within apps.
Last updated
Was this helpful?
Scheduled endpoints allow you to run PowerShell script blocks on a schedule within your App. Scheduled endpoints are more light weight than scheduled jobs but do not provide the same level of functionality. They do not track any history, the output is not logged and the schedules are not visible within the UI.
Scheduled endpoints are useful when loading and caching data that you will only use in your dashboard. Data stored within the app cache is not shared across PowerShell Universal.
The below is an example of scheduling an endpoint that runs every 10 seconds and stores information in a cache variable. This type of configuration increases performance of the app for end users since the cache data is returned rather than calling Get-Process
with each load of the app.
You can also use thecaching features in Apps. This means that you will be able to access that data throughout PowerShell Universal scripts. In your app, you can load the cache with the scheduled endpoint.
You can then use the cache data in your API.