aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorIvar Refsdal <ivar.refsdal@nsd.no>2021-09-27 14:36:24 +0200
committerIvar Refsdal <ivar.refsdal@nsd.no>2021-09-27 14:36:24 +0200
commit79acba1b716685bb601e05a2e9824eefd19d1f5d (patch)
treed014d59f94251e52689a03e4ab399aa1ea0dc374 /README.md
parentRelease 0.2.37 (diff)
downloadfiinha-79acba1b716685bb601e05a2e9824eefd19d1f5d.tar.gz
fiinha-79acba1b716685bb601e05a2e9824eefd19d1f5d.tar.xz
Add :valid-payload? function
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 314c779..7e49431 100644
--- a/README.md
+++ b/README.md
@@ -146,6 +146,8 @@ the payload. It can be added like this:
; An optional map of queue opts
{:allow-cas-failure? true ; Treat [:db.cas ...] failures as success. This is one way for the
; consumer function to ensure idempotence.
+ :valid-payload? (fn [payload] (some? (:id payload))) ; Function that verifies payload. Should return truthy for valid payloads.
+ ; The default function always returns true.
:max-retries 10}) ; Specify maximum number of times an item will be retried. Default: 100
```