ankaios icon indicating copy to clipboard operation
ankaios copied to clipboard

ank get workloads shall support a watch option

Open krucod3 opened this issue 10 months ago • 2 comments

Description

Currently ank get workloads does a single request of the state and presents it to the user. A watch is possible with the Linux watch command. We can add a flag to the get workloads command specifying that the CLI shall watch for updates.

Goals

Improve the CLI usability.

Final result

The implementation can be done smartly by reacting to update workload states instead of polling for the complete state all the time.

We can get the state at the beginning and then listen for UpdateWorkloadState messages. Once a message for an unknown to the CLI workload comes, the CLI can request the compete state again and update the table.

With this implementation the CLI will shall all state changes and be independent of a sampling rate

Summary

To be filled when the final solution is sketched.

Tasks

  • [ ] Task 1
  • [ ] Task 2
  • [ ] ...

krucod3 avatar Apr 04 '24 08:04 krucod3