]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
worker: fix crash on try_delete_jobs 1524/head
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Wed, 24 Jun 2020 09:27:31 +0000 (11:27 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Wed, 24 Jun 2020 14:27:51 +0000 (16:27 +0200)
commita34fb6a3694538db8496b3bc599c3e62b9acaca6
tree3d1be023abec91c45e3e1ccb893842fa7d5c6fa1
parent3a453c0fe9dcb75a11296ac69235fbb14d7f12c1
worker: fix crash on try_delete_jobs

In some circumstances workers try to delete a job which
is not created yet. It quits immediately with unhandled
exception error.

We do not want to allow crashes whatever error happens,
because worker can continue working and process other
jobs correctly.

Also some schedulers might not add corresponding
first in suite and last in suite jobs to the reporter,
since it is not required.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/worker.py