you can also extract this logic out to the deployment status manager, this way other services will be able to access that info.