feat: record job needs

This commit is contained in:
Jason Song committed 2022-11-25 17:48:46 +08:00
1 parent 234cdc67e1
commit cf40dca0c4
7 files changed
+17 -14

No files matched your search

+1 -2
View File
@@ -71,11 +71,10 @@ func addBotTables(x *xorm.Engine) error {
ID int64
RunID int64 `xorm:"index"`
Name string
Ready bool // ready to be executed
Attempt int64
WorkflowPayload []byte
JobID string // job id in workflow, not job's id
Needs []int64 `xorm:"JSON TEXT"`
Needs []string `xorm:"JSON TEXT"`
RunsOn []string `xorm:"JSON TEXT"`
TaskID int64 // the latest task of the job
Status int `xorm:"index"`