Description
To monitor a running DAG, clients end up using DAGClient.getDAGSstatus in a loop with a poll interval.
In the worst case, they find out about DAG completion, failure etc only after the poll interval.
Instead, an API can be added which waits on the AM for a specified interval, but can return earlier if the DAG state changes.
This will end up blocking RPC handlers - but that isn't a problem since we don't have many entities querying for DAG status.