DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Watchdog feature for resources

Open SteveL-MSFT opened this issue 10 months ago • 0 comments

Summary of the new feature / enhancement

We don't want a single resource blocking completion of a configuration. Timeouts aren't predictable as the time something takes can differ on different systems and also networks.

Proposed technical implementation details (optional)

DSC engine should have a built in watchdog that will timeout after some predefined time (can be settable via parameter, but maybe default to 5 minutes?). Basically, a resource that does not emit anything to stderr or stdout within the watchdog timeout will cause dsc to kill the resource and report a timeout. Anything sent to stderr (progress, trace, maybe we can have a generate heartbeat message if needed) will reset the watchdog.

SteveL-MSFT avatar Feb 20 '25 19:02 SteveL-MSFT