]> git.itanic.dy.fi Git - rrdd/commit
process: Always kick job scheduler when a worker finishes
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 21 Nov 2020 09:34:59 +0000 (11:34 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 21 Nov 2020 09:34:59 +0000 (11:34 +0200)
commit8234cb87d8de718a3654bcbf5e10fb137406848c
tree96bc7ce4273dca739767866c7b5d2a975272a77d
parentadec382c3be9b45bc2d993c60e08583bf7659c80
process: Always kick job scheduler when a worker finishes

If we happen to have a very long running job, it is not desired that
all other jobs remain stuck waiting this job to complete. This can
happen if we first start all jobs, causing the scheduler to wait
indefinitely for a "kick", then the last job takes forever to finish.

To fix this, every time a job finishes, it is better to reschedule the
job poller in case new job has become schedulable.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
process.c