How to schedule restart of Windows machine at the end of recipe run instead of chef-client run?

Viewed 1413

I am currently using WindowsRebootHandler, to restart the machine at the end of chef-client run (i.e, after running all the recipes).

Is there any way to schedule restart of the machine at the end of each recipe run instead of chef-client run?

Even when I tried with timeout 0 on windows_reboot function, restart happened at the end of chef-client run.

2 Answers
Related