From 7eb4a01b3028bb716cc6d4824217c38103a4b29e Mon Sep 17 00:00:00 2001 From: DuodenumL Date: Fri, 22 Oct 2021 11:04:40 +0800 Subject: [PATCH] fix a local cache issue (#79) --- store/core/workload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/core/workload.go b/store/core/workload.go index b80c60c..279f207 100644 --- a/store/core/workload.go +++ b/store/core/workload.go @@ -19,7 +19,7 @@ func getCacheTTL(ttl int) time.Duration { // SetWorkloadStatus deploy containers func (c *Store) SetWorkloadStatus(ctx context.Context, status *types.WorkloadStatus, ttl int64) error { - workloadStatus := fmt.Sprintf("%s|%v|%v", status.ID, status.Running, status.Healthy) + workloadStatus := fmt.Sprintf("%+v", status) if ttl == 0 { cached, ok := c.cache.Get(status.ID) if ok {