diff options
| author | Ivar Refsdal <ivar.refsdal@nsd.no> | 2021-09-27 14:36:24 +0200 |
|---|---|---|
| committer | Ivar Refsdal <ivar.refsdal@nsd.no> | 2021-09-27 14:36:24 +0200 |
| commit | 79acba1b716685bb601e05a2e9824eefd19d1f5d (patch) | |
| tree | d014d59f94251e52689a03e4ab399aa1ea0dc374 /README.md | |
| parent | Release 0.2.37 (diff) | |
| download | fiinha-79acba1b716685bb601e05a2e9824eefd19d1f5d.tar.gz fiinha-79acba1b716685bb601e05a2e9824eefd19d1f5d.tar.xz | |
Add :valid-payload? function
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 ``` |
