aboutsummaryrefslogtreecommitdiff
path: root/sql/update/json_diff_update.sql
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-02-25 12:22:19 +0300
committerFrederick Muriuki Muriithi2022-03-03 10:20:04 +0300
commit7de9fea87dc2c9bcb242fd7ffda11af63dbf4268 (patch)
treedd78cfbdfd30cc563c1b5065d4b1fb3931f4e000 /sql/update/json_diff_update.sql
parent6d39c92fbc9a7b82cd8eef60c62cd5d83acb49a1 (diff)
downloadgenenetwork3-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 'sql/update/json_diff_update.sql')
0 files changed, 0 insertions, 0 deletions