From 154c14399c7bc2e80376f31fbf1c3271662b70b4 Mon Sep 17 00:00:00 2001 From: Siratee K Date: Thu, 14 Mar 2024 23:11:34 +0700 Subject: [PATCH] fix: Bump Version up --- go.mod | 2 +- go.sum | 4 ++-- main.go | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index a47a520..84bf83c 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module example-non-docker-repo go 1.21.6 require ( - github.com/resource-aware-jds/container-lib v0.0.2 + github.com/resource-aware-jds/container-lib v0.0.3 github.com/sirupsen/logrus v1.9.3 ) diff --git a/go.sum b/go.sum index 9576ee6..229841d 100644 --- a/go.sum +++ b/go.sum @@ -17,8 +17,8 @@ github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dv github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/resource-aware-jds/container-lib v0.0.2 h1:54gssM10U8zOqr3r2NbbCG8iF/lJtDB4AqhUkzpGNBc= -github.com/resource-aware-jds/container-lib v0.0.2/go.mod h1:heAW24559Es/2Ck9LsDk1tXkNENeGbbMM2IX5O0a2jc= +github.com/resource-aware-jds/container-lib v0.0.3 h1:lKwoTpWLH+H4KIF8MyYTmjZIrDkGvajtwpTrXVANi7g= +github.com/resource-aware-jds/container-lib v0.0.3/go.mod h1:heAW24559Es/2Ck9LsDk1tXkNENeGbbMM2IX5O0a2jc= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/main.go b/main.go index d5dfe89..bbe1190 100644 --- a/main.go +++ b/main.go @@ -16,10 +16,14 @@ func main() { err := json.Unmarshal(task.Attributes, &unmarshalledData) if err != nil { logrus.Error(err) + return err } + time.Sleep(15 * time.Second) fmt.Println(unmarshalledData) - time.Sleep(30 * time.Second) + + ctx.Success() + ctx.RecordResult(task.Attributes) return nil }) }