Skip to content

Commit b09c687

Browse files
committed
docs: add note about watcher reliability
1 parent 86e4a3a commit b09c687

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

website/docs/usage.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,6 +2381,21 @@ if called by another task, either directly or as a dependency.
23812381

23822382
:::
23832383

2384+
:::caution
2385+
2386+
The watcher can misbehave in certain scenarios, in particular for long-running
2387+
servers.
2388+
There is a known bug where child processes of the running might not be killed
2389+
appropriately. It's adviced to avoid running commands as `go run` and prefer
2390+
`go build [...] && ./binary` instead.
2391+
2392+
If you are having issues, you might want to try tools specifically designed for
2393+
live-reloading, like [Air](https://github.com/air-verse/air/). Also, be sure to
2394+
[report any issues](https://github.com/go-task/task/issues/new?template=bug_report.yml)
2395+
to us.
2396+
2397+
:::
2398+
23842399
{/* prettier-ignore-start */}
23852400
[gotemplate]: https://golang.org/pkg/text/template/
23862401
[templating-reference]: ./reference/templating.mdx

0 commit comments

Comments
 (0)