Skip to content

Commit

Permalink
Add more test code
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun-m committed Jan 9, 2025
1 parent 164a70d commit e5f7979
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/abstractions/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (is *RuncImageService) monitorImageContainers(ctx context.Context) {
case common.KeyOperationSet:
if strings.Contains(event.Key, common.RedisKeys.SchedulerContainerState("")) {
containerId := strings.TrimPrefix(is.keyEventManager.TrimKeyspacePrefix(event.Key), common.RedisKeys.SchedulerContainerState(""))
log.Printf("CONTAINER_ID_ssIS: %s", containerId)
log.Printf("CONTAINER_ID_ssIsS: %s", containerId)
if is.rdb.Exists(ctx, Keys.imageBuildContainerTTL(containerId)).Val() == 0 {
is.builder.scheduler.Stop(&types.StopContainerArgs{
ContainerId: containerId,
Expand Down
3 changes: 2 additions & 1 deletion pkg/scheduler/pool_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ func (wpc *LocalKubernetesWorkerPoolController) createWorkerJob(workerId string,
workerImage := fmt.Sprintf("%s/%s:%s",
wpc.config.Worker.ImageRegistry,
wpc.config.Worker.ImageName,
wpc.config.Worker.ImageTag,
// wpc.config.Worker.ImageTag,
"devel",
)

resources := corev1.ResourceRequirements{}
Expand Down
1 change: 1 addition & 0 deletions pkg/worker/runc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (s *RunCServer) RunCExec(ctx context.Context, in *pb.RunCExecRequest) (*pb.

err = s.runcHandle.Exec(ctx, in.ContainerId, *process, &runc.ExecOpts{
OutputWriter: instance.OutputWriter,
Detach: true,
})

return &pb.RunCExecResponse{
Expand Down

0 comments on commit e5f7979

Please sign in to comment.