From f5840aa77956ab62b09c55ef1d8206ea7d2cd8a4 Mon Sep 17 00:00:00 2001 From: davidgortega Date: Mon, 22 Mar 2021 18:40:58 +0100 Subject: [PATCH 1/2] Destroy runner log --- bin/cml-runner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/cml-runner.js b/bin/cml-runner.js index b2f62882d..a1001e69c 100755 --- a/bin/cml-runner.js +++ b/bin/cml-runner.js @@ -43,6 +43,7 @@ const shutdown = async (opts) => { const { name, workdir = '' } = opts; const tf_path = workdir; + console.log('Destroying runner...'); if (error) console.error(error); const unregister_runner = async () => { From c620a17a4b0044a4d5f98ae03e07cf90aba502bd Mon Sep 17 00:00:00 2001 From: davidgortega Date: Mon, 22 Mar 2021 19:05:37 +0100 Subject: [PATCH 2/2] error json --- bin/cml-runner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/cml-runner.js b/bin/cml-runner.js index a1001e69c..bca926eee 100755 --- a/bin/cml-runner.js +++ b/bin/cml-runner.js @@ -43,7 +43,9 @@ const shutdown = async (opts) => { const { name, workdir = '' } = opts; const tf_path = workdir; - console.log('Destroying runner...'); + console.log( + JSON.stringify({ level: error ? 'error' : 'info', status: 'terminated' }) + ); if (error) console.error(error); const unregister_runner = async () => {