From a1d5d6831f0a862cbcfd3c62900457ddc1a3332e Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Mon, 3 Feb 2020 15:56:16 +0000 Subject: [PATCH] Add String to Runtime interface --- runtime/runtime.go | 2 ++ runtime/service.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/runtime/runtime.go b/runtime/runtime.go index 4dfe5d27..ce1b03f3 100644 --- a/runtime/runtime.go +++ b/runtime/runtime.go @@ -17,6 +17,8 @@ var ( // Runtime is a service runtime manager type Runtime interface { + // String describes runtime + String() string // Init initializes runtime Init(...Option) error // Create registers a service diff --git a/runtime/service.go b/runtime/service.go index ea42dc9e..45f70470 100644 --- a/runtime/service.go +++ b/runtime/service.go @@ -170,6 +170,8 @@ func (s *service) Wait() { s.Metadata["status"] = "error" s.Metadata["error"] = err.Error() s.err = err + } else { + s.Metadata["status"] = "done" } // no longer running