mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-19 22:06:17 +00:00
Remove panic recovering (#3162)
This commit is contained in:
parent
f8fb28e651
commit
d0380e31b5
1 changed files with 0 additions and 12 deletions
|
@ -17,7 +17,6 @@ package queue
|
||||||
import (
|
import (
|
||||||
"container/list"
|
"container/list"
|
||||||
"context"
|
"context"
|
||||||
"runtime"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -241,17 +240,6 @@ func (q *fifo) process() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
defer func() {
|
|
||||||
// the risk of panic is low. This code can probably be removed
|
|
||||||
// once the code has been used in real world installs without issue.
|
|
||||||
if err := recover(); err != nil {
|
|
||||||
const size = 64 << 10
|
|
||||||
buf := make([]byte, size)
|
|
||||||
buf = buf[:runtime.Stack(buf, false)]
|
|
||||||
log.Error().Msgf("queue: unexpected panic: %v\n%s", err, buf)
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
|
|
||||||
q.resubmitExpiredPipelines()
|
q.resubmitExpiredPipelines()
|
||||||
q.filterWaiting()
|
q.filterWaiting()
|
||||||
for pending, worker := q.assignToWorker(); pending != nil && worker != nil; pending, worker = q.assignToWorker() {
|
for pending, worker := q.assignToWorker(); pending != nil && worker != nil; pending, worker = q.assignToWorker() {
|
||||||
|
|
Loading…
Reference in a new issue