Add sleep to child polling

This commit is contained in:
Gregory Schier committed 2024-07-27 08:26:14 -07:00
1 parent 307ca480f3
commit 54090614ad
1 file changed
+1
@@ -75,6 +75,7 @@ pub async fn node_start<R: Runtime>(
// Check on child
tokio::spawn(async move {
loop {
tokio::time::sleep(Duration::from_millis(50)).await;
if let Ok(Some(status)) = child.try_wait() {
error!("Plugin runtime exited status={}", status);
// TODO: Try restarting plugin runtime