Closed jpb closed 7 years ago
The semantics of what it should do in the case aren't obvious. I think we should inspect the LastUpdatedTime
and if it's within the last 5 minutes and the stack is now in a terminal state, assume the operation has finished and exit. Otherwise, we could assume that the terminal state is from a previous operation and the new one is about to begin. We could then optionally set an idel timeout before continuing to watch. Thoughts?
To clarify, you're suggesting:
CREATE_COMPLETE
(or similar), and no new events come in for some time, then stop pollingCREATE_COMPLETE
(or similar), and the stack updated time is more than 5 minutes ago, then don't poll at allI guess both cases could be collapsed into
CREATE_COMPLETE
(or similar), then poll until stack updated time + 5 minutes, if no new events are received, then stop pollingThat works. The timeout could be a cli option with a default of 5.
Fixed with --inactivity-timeout
option on watch-stack
.