Occasionally, there would be notifications which will remain 'new',
'error' or 'running' status all times, and not to be processed again.
Due to this, operator can not update the segment or host.
This patch add one task to periodically check unfinished notifications.
If one unfinished notification is expired, just set its status to
'failed'.
Close-Bug: #1773765
Change-Id: If49635639dd976aeec3ea73e702ad2636fcf1e0a
(cherry picked from commit 3a4f782441f6bdcfb8ee49a393937267fc246c56)
Reviewed: https:/ /review. opendev. org/753921 /git.openstack. org/cgit/ openstack/ masakari/ commit/ ?id=b53155b3140 68a46cd097d3788 add1b6d4fc0aff
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit b53155b314068a4 6cd097d3788add1 b6d4fc0aff 2008@163. com>
Author: suzhengwei <sugar-
Date: Fri Apr 17 08:59:35 2020 +0800
check expired notifications
Occasionally, there would be notifications which will remain 'new',
'error' or 'running' status all times, and not to be processed again.
Due to this, operator can not update the segment or host.
This patch add one task to periodically check unfinished notifications.
If one unfinished notification is expired, just set its status to
'failed'.
Close-Bug: #1773765 aeec3ea73e702ad 2636fcf1e0a fb8ee49a3939372 67fc246c56)
Change-Id: If49635639dd976
(cherry picked from commit 3a4f782441f6bdc