diff options
author | Frederick Muriuki Muriithi | 2022-02-25 12:22:19 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-03-03 10:20:04 +0300 |
commit | 7de9fea87dc2c9bcb242fd7ffda11af63dbf4268 (patch) | |
tree | dd78cfbdfd30cc563c1b5065d4b1fb3931f4e000 /guix.scm | |
parent | 6d39c92fbc9a7b82cd8eef60c62cd5d83acb49a1 (diff) | |
download | genenetwork3-7de9fea87dc2c9bcb242fd7ffda11af63dbf4268.tar.gz |
Do incremental backoff if there are no jobs on the queue
Since the worker polls a queue for jobs, it can get into a busy poll. This was
the reason that there was a delay of 0.1 seconds between each poll instance.
This commit takes this a little further by doing an incremental backoff, where
it waits longer and longer after each poll where it does not find a job
available, up to an arbitrary maximum.
Diffstat (limited to 'guix.scm')
0 files changed, 0 insertions, 0 deletions