File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ type ActionRun struct {
47
47
TriggerEvent string // the trigger event defined in the `on` configuration of the triggered workflow
48
48
Status Status `xorm:"index"`
49
49
Version int `xorm:"version default 0"` // Status could be updated concomitantly, so an optimistic lock is needed
50
- ConcurrencyGroup string
50
+ ConcurrencyGroup string `xorm:"index"`
51
51
ConcurrencyCancel bool
52
52
// Started and Stopped is used for recording last run time, if rerun happened, they will be reset to 0
53
53
Started timeutil.TimeStamp
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ type ActionRunJob struct {
39
39
RawConcurrencyGroup string // raw concurrency.group
40
40
RawConcurrencyCancel string // raw concurrency.cancel-in-progress
41
41
IsConcurrencyEvaluated bool // whether RawConcurrencyGroup have been evaluated, only valid when RawConcurrencyGroup is not empty
42
- ConcurrencyGroup string // evaluated concurrency.group
42
+ ConcurrencyGroup string `xorm:"index"` // evaluated concurrency.group
43
43
ConcurrencyCancel bool // evaluated concurrency.cancel-in-progress
44
44
45
45
Started timeutil.TimeStamp
Original file line number Diff line number Diff line change 9
9
10
10
func AddActionsConcurrency (x * xorm.Engine ) error {
11
11
type ActionRun struct {
12
- ConcurrencyGroup string
12
+ ConcurrencyGroup string `xorm:"index"`
13
13
ConcurrencyCancel bool
14
14
}
15
15
@@ -21,7 +21,7 @@ func AddActionsConcurrency(x *xorm.Engine) error {
21
21
RawConcurrencyGroup string
22
22
RawConcurrencyCancel string
23
23
IsConcurrencyEvaluated bool
24
- ConcurrencyGroup string
24
+ ConcurrencyGroup string `xorm:"index"`
25
25
ConcurrencyCancel bool
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments