Skip to content

Commit

Permalink
fix Update
Browse files Browse the repository at this point in the history
  • Loading branch information
sirateek committed Apr 6, 2024
1 parent f996d72 commit c65e5fe
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import (
"github.com/resource-aware-jds/container-lib/model"
"github.com/resource-aware-jds/container-lib/pkg/containerlibcontext"
"github.com/sirupsen/logrus"
"os"
"os/signal"
"syscall"
"time"
)

Expand Down Expand Up @@ -60,18 +57,9 @@ func main() {

}(newCtx)

// Gracefully Shutdown
// Make channel listen for signals from OS
gracefulStop := make(chan os.Signal, 1)
signal.Notify(gracefulStop, syscall.SIGTERM)
signal.Notify(gracefulStop, syscall.SIGINT)

<-gracefulStop

cancelFunc()

time.Sleep(sleepTime)
fmt.Println(unmarshalledData)
cancelFunc()

ctx.Success()
ctx.RecordResult(task.Attributes)
Expand Down

0 comments on commit c65e5fe

Please sign in to comment.