# A task waits for a persistent task without a ready check

What "it would wait forever" means and how to fix it.

```text
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.
```

## Why it happens

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.

## How to fix it

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

```toml
[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](https://axlers.dev/docs/reference/configuration.md#persistent-tasks) lists every kind of check.
