funcool 2024-11-12

Hmm... still getting an error: (pxb/create :type :executor :concurrency 1 :queue 16 :executor (px/cached-executor))

=> Execution error (NullPointerException) at promesa.exec.bulkhead/create-with-executor (bulkhead.clj:173).

All right, I figured it out. Must supply :permits to pxb/create: This is the minimal example that works: (pxb/create _:type :executor_ _:permits_ 1) With no :executor provided ends up resolving java.util.concurrent.ForkJoinPool

Documentation on this seems to be out of date.

If :permits not supplied end up with (int nil) which throws. Perhaps the intention was to use max-permits? Not sure though.

Judging from the code the correct and relevant keys for pxb/create are :type :executor :permits :queue .