Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果进程仍在运行,我想确保厨师在继续之前等待。如何在 Windows 上做到这一点?
正如这里提到的,可以使用执行资源的智能使用,即在继续之前等待 TiWorker.exe 进程完成:
execute "Wait until TiWorker is not present" do command "c:/Sysinternals/pslist /accepteula TiWorker" retries 30 returns 1 retry_delay 10 timeout 10 end
其中 pslist 是pslist