Skip to content

api,cli: remove WatchTask and ax watch - #522

Merged
rakyll merged 1 commit into
mainfrom
remove-watch
Oct 27, 2026
Merged

rakyll merged 1 commit into
mainfrom
remove-watch

Conversation

@rakyll

@rakyll rakyll commented Oct 27, 2026

Copy link
Copy Markdown
Member

Remove the WatchTask server-streaming RPC and the ax watch task command built on it.

  • api: drop WatchTask and the WatchTaskRequest and WatchTaskResponse messages from ax.proto, and regenerate ax.pb.go and ax_grpc.pb.go.
  • server: remove the WatchTask handler and the watchPollInterval it polled on, plus the export_test.go hook that overrode the interval.
  • cli: remove the watch command, runWatch, and its usage line.
  • test: drop the watch steps from the server tests. The E2E test becomes TestE2E_DescribeAndAtespaceIsolation and still checks atespace isolation and ax describe after a plain resume.
  • docs: point README, DESIGN.md, docs/concepts.md, docs/runner.md and demo.sh at ax describe instead of ax watch. The README also now says make deploy installs PostgreSQL, not Redis.

This is a breaking change. Clients calling WatchTask get Unimplemented, and ax watch is no longer a command. Use GetTask, or ax describe task, to read a task's phase and conditions.

Remove the WatchTask server-streaming RPC and the `ax watch task` command
built on it.

- api: drop WatchTask and the WatchTaskRequest and WatchTaskResponse
  messages from ax.proto, and regenerate ax.pb.go and ax_grpc.pb.go.
- server: remove the WatchTask handler and the watchPollInterval it
  polled on, plus the export_test.go hook that overrode the interval.
- cli: remove the watch command, runWatch, and its usage line.
- test: drop the watch steps from the server tests. The E2E test becomes
  TestE2E_DescribeAndAtespaceIsolation and still checks atespace
  isolation and `ax describe` after a plain resume.
- docs: point README, DESIGN.md, docs/concepts.md, docs/runner.md and
  demo.sh at `ax describe` instead of `ax watch`. The README also now says
  `make deploy` installs PostgreSQL, not Redis.

This is a breaking change. Clients calling WatchTask get Unimplemented,
and `ax watch` is no longer a command. Use GetTask, or `ax describe
task`, to read a task's phase and conditions.
@rakyll
rakyll requested a review from mayawang as a code owner October 27, 2026 02:35

@mayawang mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rakyll, removing the poll loop is the right call. Tests pass on main. Approving. #462 (NotFound when watching a missing task) can probably close now.

@rakyll
rakyll merged commit 888ae06 into main Oct 27, 2026
10 checks passed
@rakyll
rakyll deleted the remove-watch branch October 27, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants