chore: final read before merging
ci/woodpecker/pr/docs Pipeline was successful
Details
ci/woodpecker/pr/lint Pipeline was successful
Details
ci/woodpecker/pr/build Pipeline was successful
Details
ci/woodpecker/pr/man Pipeline was successful
Details
ci/woodpecker/pr/docker Pipeline was successful
Details
ci/woodpecker/pr/test Pipeline was successful
Details
ci/woodpecker/pr/docs Pipeline was successful
Details
ci/woodpecker/pr/lint Pipeline was successful
Details
ci/woodpecker/pr/build Pipeline was successful
Details
ci/woodpecker/pr/man Pipeline was successful
Details
ci/woodpecker/pr/docker Pipeline was successful
Details
ci/woodpecker/pr/test Pipeline was successful
Details
parent
51df1874f5
commit
60cb91c18c
|
@ -144,7 +144,9 @@ fn (mut q BuildJobQueue) pop_invalid(arch string) {
|
||||||
// peek shows the first job for the given architecture that's ready to be
|
// peek shows the first job for the given architecture that's ready to be
|
||||||
// executed, if present.
|
// executed, if present.
|
||||||
pub fn (mut q BuildJobQueue) peek(arch string) ?BuildJob {
|
pub fn (mut q BuildJobQueue) peek(arch string) ?BuildJob {
|
||||||
rlock q.mutex {
|
// Even peek requires a write lock, because pop_invalid can modify the data
|
||||||
|
// structure
|
||||||
|
lock q.mutex {
|
||||||
if arch !in q.queues {
|
if arch !in q.queues {
|
||||||
return none
|
return none
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,9 +36,7 @@ fn (mut app App) init_job_queue() ! {
|
||||||
|
|
||||||
for targets.len > 0 {
|
for targets.len > 0 {
|
||||||
for target in targets {
|
for target in targets {
|
||||||
for arch in target.arch {
|
app.job_queue.insert_all(target)!
|
||||||
app.job_queue.insert(target: target, arch: arch.value)!
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
i += 25
|
i += 25
|
||||||
|
|
Loading…
Reference in New Issue