Skip to content

A task waits for a persistent task without a ready check

error: web#e2e waits for api#dev, which runs until stopped and has no ready check, so it would wait forever
hint: Give api#dev a ready check in axle.toml, such as ready = { port = 3000 }, or list it under with instead of dependsOn if nothing needs to wait for it.

A task’s dependsOn names a persistent task, such as a dev server. A persistent task never ends, so the waiting task can only start once the persistent one says it has started, and nothing says that here.

Give the persistent task a ready check in its axle.toml, so Axle knows when it has started:

[tasks.dev]
ready = { url = "http://localhost:8080/health" }

If the other task doesn’t need it to have started, list it under with instead, which starts it alongside without waiting. Persistent tasks lists every kind of check.