Skip to content

Commit 0302a4f

Browse files
medclsilenceqi
authored andcommitted
chore: skip Cancel in task context for json serialization
1 parent 567b8b0 commit 0302a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/task/task.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ type ScheduleTask struct {
146146
State State `config:"state" json:"state,omitempty"`
147147
Ctx context.Context `config:"-" json:"-"` //for transient task
148148

149-
Cancel context.CancelFunc
149+
Cancel context.CancelFunc `config:"-" json:"-"`
150150

151151
isTaskRunning *atomic.Bool
152152
}

0 commit comments

Comments
 (0)