ironmansoftware / universal-automation

Universal Automation is the PowerShell-first automation platform.
https://ironmansoftware.com/universal-automation/
MIT License
24 stars 4 forks source link

Flag to disable run on demand for a script #59

Closed Chirishman closed 4 years ago

Chirishman commented 4 years ago

Describe the solution you'd like

I'd like a property to be added on script definitions to prevent adhoc running.

Something analogous to New-ScheduledJobOption -DoNotAllowDemandStart

Describe how this would improve your Universal Automation Quality of Life

Sometimes you have a job which you want to allow to run only at specific times, whether it performs maintenance actions which have the potential to interrupt service for normal users by rebooting something or takes an extremely long time to execute.

adamdriscoll commented 4 years ago

This has been implemented and will be in version 0.0.3-beta4