Some more fixes for lock_state and environment_state metrics
What does this MR do and why?
Describe in detail what your merge request does and why.
Content
-
Set
lock_state
tolocked_post_deploy_migration_failed
if post deploy migrations or the QA fails. -
Set
lock_state
metric to 0 after deployment and QA completes successfully, for deployments and post-deploy migrations. -
Set environment state to
ready
after deployment to gstg and gprd completes successfully, and after post-deploy migrations. -
To allow the
lock_state
metric to be set to 0, modify the rake task to accept a nillock_reason
. Whenlock_reason
is nil, it sets all metric values of the given environment to 0.
Author Check-list
-
Has documentation been updated?
Edited by Reuben Pereira