mount

bsima 2016-09-20T16:18:11.000234Z

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

tolitius 2016-09-20T17:33:53.000238Z

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

tolitius 2016-09-20T17:34:18.000239Z

that's interesting

bsima 2016-09-20T17:34:41.000240Z

yeah, multiple {:order 1}...

tolitius 2016-09-20T17:34:50.000241Z

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

tolitius 2016-09-20T17:35:56.000242Z

can you do:

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

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

bsima 2016-09-20T17:36:00.000243Z

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

bsima 2016-09-20T17:36:02.000244Z

yeah one sec

bsima 2016-09-20T17:37:46.000245Z

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 #{}}

bsima 2016-09-20T17:38:04.000246Z

that's from a fresh repl

bsima 2016-09-20T17:39:39.000247Z

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

bsima 2016-09-20T17:40:02.000248Z

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

tolitius 2016-09-20T17:52:04.000250Z

@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)

bsima 2016-09-20T17:56:35.000251Z

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

bsima 2016-09-20T17:56:39.000252Z

@tolitius ^

tolitius 2016-09-20T17:58:22.000253Z

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