aboutsummaryrefslogtreecommitdiff
path: root/src/com/github/ivarref/yoltq.clj
diff options
context:
space:
mode:
authorIvar Refsdal <refsdal.ivar@gmail.com>2022-03-27 18:39:44 +0200
committerIvar Refsdal <refsdal.ivar@gmail.com>2022-03-27 18:39:44 +0200
commit6c26a3b6871286510bb8e9770ee7f7e3abf97abe (patch)
treee5b831db0f727c77255df58edd7e07275c7bb4d0 /src/com/github/ivarref/yoltq.clj
parentDocument (diff)
downloadfiinha-6c26a3b6871286510bb8e9770ee7f7e3abf97abe.tar.gz
fiinha-6c26a3b6871286510bb8e9770ee7f7e3abf97abe.tar.xz
Start use current millis in the database, not nano offset
Diffstat (limited to 'src/com/github/ivarref/yoltq.clj')
-rw-r--r--src/com/github/ivarref/yoltq.clj8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/github/ivarref/yoltq.clj b/src/com/github/ivarref/yoltq.clj
index 03a364f..17aa40a 100644
--- a/src/com/github/ivarref/yoltq.clj
+++ b/src/com/github/ivarref/yoltq.clj
@@ -19,7 +19,7 @@
(def default-opts
(-> {; Default number of times a queue job will be retried before giving up
- ; Can be overridden on a per consumer basis with
+ ; Can be overridden on a per-consumer basis with
; (yq/add-consumer! :q (fn [payload] ...) {:max-retries 200})
:max-retries 100
@@ -34,7 +34,7 @@
:hung-backoff-time (Duration/ofMinutes 30)
; Most queue jobs in init state will be consumed by the tx-report-queue listener.
- ; However in the case where a init job was added right before the application
+ ; However, in the case where an init job was added right before the application
; was shut down and did not have time to be processed by the tx-report-queue listener,
; it will be consumer by the init poller. This init poller backs off by
; :init-backoff-time to avoid unnecessary compare-and-swap lock failures that could
@@ -66,7 +66,7 @@
; How often should the system invoke
:system-error-callback-backoff (Duration/ofHours 1)}
- u/duration->nanos))
+ u/duration->millis))
(defn init! [{:keys [conn] :as cfg}]
@@ -83,7 +83,7 @@
default-opts
(if *test-mode* old-conf (select-keys old-conf [:handlers]))
cfg)
- u/duration->nanos)))]
+ u/duration->millis)))]
new-cfg)))