Closed PHILO-HE closed 4 years ago
Thanks @PHILO-HE support as always. This patch can make rule running better.
@lipppppp, the patch has been refined in the latest two commits. I will commit the patch soon. To avoid any regression issue, you can do some more tests on your side.
For rule with small check time interval set, many repeated task will be produced unnecessarily. This make user difficult to track tasks and also increases SSM cluster's load. Thanks @lipppppp for bringing the thought that we can try to improve such behavior.
In this proposed patch, a set is used to track CmdletDesctiptor with rule ID and cmd string contained, from the submitted time to the finished time. In the submitting of another CmdletDesctiptor, SSM will judge whether a same task is running by checking the set. And refuse the submission if true.