dbjobqueue: don't log when context's deadline was exceeded
This happens rather often as we limit the request job timeout to 20s on the service. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
76d8a75184
commit
14b29ae98a
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ func (q *dbJobQueue) Dequeue(ctx context.Context, jobTypes []string) (uuid.UUID,
|
|||
}
|
||||
defer func() {
|
||||
_, err := conn.Exec(ctx, sqlUnlisten)
|
||||
if err != nil {
|
||||
if err != nil && !errors.Is(err, context.DeadlineExceeded) {
|
||||
logrus.Error("Error unlistening for jobs in dequeue: ", err)
|
||||
}
|
||||
conn.Release()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue