This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
An insight from a bug I worked on today
Using a lot of pmap
can lead to {:cognitect.anomalies/category :cognitect.anomalies/busy, :cognitect.anomalies/message "Ops limit reached: 64}
errors!
Should I look into core/async
to replace what I was using the pmap
for?
The "easiest" way ended up being something like this
(let [concurrent 5
output-chan (a/chan)
input-coll digicomp/areas-kw]
(a/pipeline-blocking concurrent
output-chan
(map (fn))
(a/to-chan! input-coll))
(<!! (a/into [] output-chan)))
Probably a good idea to control the parallelism of your requests. These might be useful though for more context/alternative solutions Have you seen https://github.com/cognitect-labs/aws-api?tab=readme-ov-file#ops-limit-reached ? https://github.com/cognitect-labs/aws-api/issues/98#issuecomment-584381822