Open lance6716 opened 1 month ago
@D3Hunter please help link this issue to #54436 in a proper task
And another goroutine polling the job state should cancel the context if it's not JobStateRunning.
some general jobs like create-table go directly from queuing -> done
Enhancement
Currently the context usage is a bit of messy. One problem is https://github.com/pingcap/tidb/issues/56017 and I think a better context usage and cancellation will solve it. After a simple review of current DDL code, I think there should to 2 types of context:
JobStateRunning
.