Fork me on GitHub
#mount
<
2016-09-20
>
bsima16:09:11

@tolitius i'm getting multiple order instances in my yurt blueprint... do you know why this could happen?

tolitius17:09:53

@bsima: you mean order X and order X for different states?

tolitius17:09:18

that's interesting

bsima17:09:41

yeah, multiple {:order 1}...

tolitius17:09:50

did you change esclient and config declarations in the same repl session?

tolitius17:09:56

can you do:

(require '[mount.tools.graph :as graph])

(graph/states-with-deps)
and paste results here?

bsima17:09:00

I don't think so, pretty sure it's this way on startup

bsima17:09:02

yeah one sec

bsima17:09:46

mem> (states-with-deps)
({:name "#'datastream.core.conf/config", :order 1, :status #{:stopped}, :deps #{}}
 {:name "#'datastream.core.search/esclient", :order 1, :status #{:stopped}, :deps #{}}
 {:name "#'datastream.core.persist/persister", :order 2, :status #{:stopped}, :deps #{}}
 {:name "#'datastream.service.api/server", :order 2, :status #{:stopped}, :deps #{}}
 {:name "#'datastream.core.topics/client", :order 3, :status #{:stopped}, :deps #{}}
 {:name "#'datastream.transactor.core/transactor", :order 4, :status #{:stopped}, :deps #{}}

bsima17:09:04

that's from a fresh repl

bsima17:09:39

i know the specific order discrepancy: topics/client should start before api/server. If i do that manually with calls to (mount/start ...) then it's fine

bsima17:09:02

but I can't find where this discrepancy comes from 😕

tolitius17:09:04

@bsima: hmm.. would you happen to have a link to a sample repo that reproduces this? this could be something simple, or a possible bug.. (does not seem to be isolated to yurt though)

bsima17:09:35

unfortunately the repo I'm working on is proprietary... but I'll keep looking for the root cause and let you know here if I find a minimal reproducible example

tolitius17:09:22

great, thanks. I'll ping you if "it comes to me" first 🙂