Commit 6c6302e7 authored by Simon Pastor's avatar Simon Pastor
Browse files

pr comments

parent d79fe5d0
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -443,9 +443,7 @@ func populateApplicationInfoList(key string, fields map[string]string, applicati
	// Get query params & userlist from user data
	data := applicationInfoList.(*ApplicationInfoList)

	log.Info("SIMON key:", key)
	if data == nil {
		log.Info("SIMON err1")
		return errors.New("ApplicationInfos not found in applicationInfoList")
	}

+0 −2
Original line number Diff line number Diff line
@@ -289,10 +289,8 @@ func applicationsConfirmTerminationPOST(w http.ResponseWriter, r *http.Request)
		return
	} else {
		//stoping the ticker for graceful termination
		log.Info("SIMON stopping tiker", appTerminationGracefulTimeoutMap)
		ticker := appTerminationGracefulTimeoutMap[appInstanceId]
		if ticker != nil {
			log.Info("SIMON ticker not nil")
			ticker.Stop()
		}
		appTerminationGracefulTimeoutMap[appInstanceId] = nil
+3 −3
Original line number Diff line number Diff line
@@ -229,10 +229,10 @@ func processActiveScenarioUpdate() {

	scenarioName := sbi.activeModel.GetScenarioName()

	if scenarioName != sbi.scenarioName {
		// Connect to Metric Store
		sbi.updateScenarioNameCB(scenarioName)

	if scenarioName != sbi.scenarioName {
		sbi.scenarioName = scenarioName
		var err error