Skip to content

Commit

Permalink
fix bug: context may null
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangXiaomeng committed Mar 22, 2024
1 parent 07ff842 commit 64fd0de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/actor/container_actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package actor

import (
"context"
"encoding/json"
"fmt"
"runtime/debug"
Expand Down Expand Up @@ -346,5 +347,6 @@ func convertMasterStartContainerRequest2JobContext(req *schedulerx.MasterStartCo
jobCtx.SetShardingNum(req.GetShardingNum())
jobCtx.SetTimeType(req.GetTimeType())
jobCtx.SetTimeExpression(req.GetTimeExpression())
jobCtx.Context = context.Background()
return jobCtx, nil
}

0 comments on commit 64fd0de

Please sign in to comment.