-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Context
The run-all and run-missing automation commands fire-and-forget (return immediately). Scripts must poll get-state and check isBusy to know when scans complete.
Problem
No built-in way to wait for scan completion. Every automation script needs its own polling loop.
Suggested approach
Options (not mutually exclusive):
- Add a
wait-idlecommand that blocks on the pipe untilIsBusytransitions to false (or a timeout) - Add a
Wait-DriftBusterIdlehelper toscripts/vm-automation.ps1that pollsget-statein a loop
Option 2 is simpler and doesn't require changes to the server.
Priority
Medium — scripts work fine with manual polling, but a helper reduces boilerplate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels