Skip to content

Commit

Permalink
fix: Try fetching job log data if runner id is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cluttrdev committed Nov 1, 2024
1 parent c00e7fd commit 6519dd8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/tasks/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,7 @@ func (c *Controller) fetchProjectsCiData(ctx context.Context, projectIds []int64

var logDataProjectJobs []types.Job
for _, job := range jobs {
if job.Kind != types.JobKindBuild { // only builds can have logs (bridges don't)
continue
}
if job.RunnerId == "" { // no runner, no log
if job.Kind == types.JobKindBridge { // bridges don't have logs
continue
}
if !c.projectsSettings.ExportLogData(job.Pipeline.Project.Id) { // duh
Expand Down

0 comments on commit 6519dd8

Please sign in to comment.