]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
lock/query: make robust against paddles errors 1642/head
authorJosh Durgin <jdurgin@redhat.com>
Tue, 20 Apr 2021 05:49:43 +0000 (01:49 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 20 Apr 2021 05:50:37 +0000 (05:50 +0000)
commit179edf2e545b300749746f121c2098de6549042e
tree2ca6e6250e5c8ad572b9bdafae3e698b3766e61e
parent2713a3cd31b17738a50039eaa9d859b5dc39fb8a
lock/query: make robust against paddles errors

Retry paddles requests, and for get_status() return an empty dict
rather than None so callers behave.

get_status() failing in particular has caused the dispatcher and jobs
to fail several times over the past few weeks. With this change, we
should be able to run multiple paddles workers again, since all the
common callers will retry on error.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
teuthology/lock/query.py