feat: record job needs

This commit is contained in:
Jason Song
2022-11-04 11:40:39 +08:00
parent 234cdc67e1
commit cf40dca0c4
7 changed files with 17 additions and 14 deletions

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"`