Skip to content

Commit

Permalink
fix bug: taskId should start from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangXiaomeng authored and xiaomeng.hxm committed Jan 23, 2024
1 parent 772e642 commit 8776c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/master/task_master.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func NewTaskMaster(actorCtx actor.Context, jobInstanceInfo *common.JobInstanceIn
inited: true,
instanceStatus: processor.InstanceStatusRunning,
taskStatusMap: sync.Map{},
taskIdGenerator: atomic.NewInt64(0),
taskIdGenerator: atomic.NewInt64(-1),
aliveCheckWorkerSet: utils.NewConcurrentSet(),
jobInstanceInfo: jobInstanceInfo,
actorContext: actorCtx,
Expand Down

0 comments on commit 8776c9d

Please sign in to comment.