Flush logger before canceling
What does this MR do and why?
Flush logger before canceling
The PostDeployMigrations::Prepare
class is automatically canceled when
there are no pending post-migrations available or when the production
checks fail. Sometimes this causes for the log not to be available,
example https://ops.gitlab.net/gitlab-org/release/tools/-/jobs/7416953.
This commit flushes the logs so they're at least available on ElasticSearch
Author Check-list
-
Has documentation been updated?