Skip to content

Flush logger before canceling

Mayra Cabrera requested to merge flush-logger-before-canceling into master

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?

Merge request reports