# Can't use "condition: service\_healthy" in 'depends\_on: directive'

**URL:** <https://forums.balena.io/t/cant-use-condition-service-healthy-in-depends-on-directive/44029>\
**Category:** balenaOS\
**Created:** [November 13, 2019, 4:56pm UTC](https://forums.balena.io/t/cant-use-condition-service-healthy-in-depends-on-directive/44029 "2019-11-13T16:56:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewcroughan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/matthewcroughan/32/9424_2.png) [@matthewcroughan](https://forums.balena.io/u/matthewcroughan)\
**Post date:** [November 13, 2019, 4:56pm UTC](https://forums.balena.io/t/cant-use-condition-service-healthy-in-depends-on-directive/44029/1 "2019-11-13T16:56:09Z")

</div>

I am consistently running into issues developing on Balena, it is way too far behind Docker directives. I need this in order to use wifi-connect properly, as Balena-Engine basically crashes and is unresponsive unless this starts AFTER the other containers are healthy. Can give more details on this later.

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [November 13, 2019, 7:07pm UTC](https://forums.balena.io/t/cant-use-condition-service-healthy-in-depends-on-directive/44029/2 "2019-11-13T19:07:47Z")

</div>

Hi Matthew, thanks for raising this. Indeed `condition:` fields on `depends_on` are not yet supported, we initially stuck to supporting only the v2 compose format as v3 introduced a number of directives that rely on swarm, which has been removed from balena-engine. We have however talked about bringing some of the more useful directives into our setup, specifically the ones around `HealthCheck` and `depends_on` but I can’t give an ETA on when that will be supported.

I would be interested to know how/why wifi-connect crashes balena-engine if it starts up before the other services. That sounds odd to me.
