Skip to content

Commit

Permalink
ttt
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v committed Sep 28, 2024
1 parent 3634f7b commit 19556d0
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cmd/job/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,15 @@ func (e *MsgExecutor) Execute(ctx context.Context, in executor.ExecuteInput) (ex
// Parse the action and value from the command
action, value := parseCommand(in.Command)

sessionID, ok := ctx.Value("sessionID").(string)
if ok {
// Initialize session state if not already present
if _, ok := e.state[sessionID]; !ok {
e.state[sessionID] = make(map[string]string)
}
}

// sessionID, ok := ctx.Value("sessionID").(string)
// if !ok {
// // Initialize session state if not already present
// sessionID = "empty"
// }
sessionID := "empty"
if _, ok := e.state[sessionID]; !ok {
e.state[sessionID] = make(map[string]string)
}
jobs := getBotkubeJobs(ctx, envs)

switch action {
Expand Down

0 comments on commit 19556d0

Please sign in to comment.