Add function cancel_job_for_retired_device() in scheduler, whenever user...

Add function cancel_job_for_retired_device() in scheduler, whenever user setting device to retired in web UI,
call this func to cancel the scheduling job using this device.

Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
15 jobs for issue66 in 9 minutes and 32 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Test
passed #40873
amd64
dispatcher-debian-10

00:02:43

passed #40871
amd64
dispatcher-debian-9

00:03:06

passed #40874
amd64
server-debian-10

00:02:02

passed #40872
amd64
server-debian-9

00:02:36

 
  Analyze
passed #40876
amd64
black

00:00:29

passed #40878
amd64
code_quality

00:00:22

passed #40877
amd64
codestyle

00:00:35

passed #40880
amd64
job-schema

00:00:42

passed #40879
amd64
pylint

00:02:13

passed #40875
dind amd64 allowed to fail
sast

00:01:48

 
  Build
passed #40883
amd64
amd64/pkg-debian-10

00:01:55

passed #40882
amd64
amd64/pkg-debian-9

00:02:04

passed #40881
amd64
doc

00:01:50

 
  Docker
passed #40884
dind amd64
amd64/lava-dispatcher

00:00:41

passed #40885
dind amd64
amd64/lava-server

00:02:08