Fork me on GitHub
#pathom
<
2019-07-03
>
souenzzo15:07:32

can I set a timeout to avoid slow resolvers?

kszabo15:07:36

there is ::pc/key-process-timeout

souenzzo15:07:36

::pt/key-process-timeout

kszabo15:07:47

depends on the ns alias :^)

souenzzo15:07:02

Once again it's some odd issue with core.async + pathom + datomic + shadow-cljs solved with -Dclojure.core.async.pool-size=500

thheller16:07:30

@souenzzo do you do any blocking work in core.async loops? shouldn't be required to raise the defaults otherwise

souenzzo17:07:39

All threads are #pathom + #datomic . No #shadow-cljs ❤️

souenzzo16:07:51

I dont directly use core.async anythere. I'm digging a thread dump, looks like that #datomic is locking all my core.async threads

souenzzo17:07:02

I cant block inside resolvers in parallel-parser, once everything is resolved inside a go block https://github.com/wilkerlucio/pathom/blob/master/src/com/wsscode/pathom/connect.cljc#L1138 I will see if is possible/make sense do this work using go just if the resolver returns a channel