mount

tolitius 2018-04-13T01:51:41.000071Z

@darnok what do you mean by parallel states? mount starts/stops state serially in order very close to the way they are compiled (that's how mount discovers them and records the order). hence if you run (mount/start) and one of these states fails the "start chain of events" will abort with an exception.

darnok 2018-04-13T05:54:22.000043Z

I mean that they are not required by each other. I'm asking because I have this case that I have one state - cassandra session and the other - queue consumer. The cassandra client doesn't start, but the consumer starts (starts thread pool, etc.). So I have cassandra state not valid, and the consuming functions throw exceptions because cannot deref cassandra session var.

darnok 2018-04-13T07:47:17.000407Z

I'm sorry for confusion. It seems that the problem was elsewhere. I had in code a future call and it was preventing shutdown of app.

2018-04-13T12:08:42.000416Z

tolitius 2018-04-13T13:05:13.000145Z

@darnok ah.. ok, so the start function of one of the states "ate" the exception in the future?

2018-04-13T14:55:15.000566Z