We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b27261 commit 050a6b6Copy full SHA for 050a6b6
models/actions/run_job.go
@@ -184,3 +184,11 @@ func AggregateJobStatus(jobs []*ActionRunJob) Status {
184
return StatusUnknown // it shouldn't happen
185
}
186
187
+
188
+func GetRunJobsByRunIDs(ctx context.Context, runIDs []int64) ([]*ActionRunJob, error) {
189
+ var jobs []*ActionRunJob
190
+ if err := db.GetEngine(ctx).In("run_id", runIDs).Find(&jobs); err != nil {
191
+ return nil, err
192
+ }
193
+ return jobs, nil
194
+}
0 commit comments