You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: watch_interactive_session.go
    path of file: ./repos/barcelona/dockerfiles/run-pack
    
    the code of the file until where you have to start completion: package main

import (
	"log"
	"o
    
func watchInteractiveSession() {
	log.Println("Interactive run watcher started")

	startTimeout := time.After(30 * time.Second)
	runTimeout := time.After(24 * time.Hour)
	tick := time.Tick(5 * time.Second)
	sessionStarted := false
	for {
		select {
		case <-tick:
			processes, err := ps.Processes()
			if err != nil {
				log.Fatalf("error: %s", err)
			}
			p, err := otherSessionRunning(processes)
			if err != nil {
				log.Fatalf("error: %s", err)
			}

			if sessionStarted && p == nil {
				// session has started and already finished
				log.Println("Interactive session successfully finished")
				os.Exit(0)
			} else if !sessionStarted && p != nil {
				// session has just started so mark the flag
				log.Println("Interactive session has started")
				sessionStarted = true
			}
		case <-startTimeout:
			if !sessionStarted {
				log.Println("Interactive session has not started for 30 seconds")
				os.Exit(2)
			}
		case <-runTimeout:
			log.Println("Interactive session has run for over 24 hours")
			os.Exit(2)
		}
	}
}