Skip to content

fix: Add instance availability check

Nailia Iskhakova requested to merge fix-exit-when-error into main

What

Add instance availability check to ensure that CMBR fails early if instance is not available. Step can be skipped by setting environment variable.

Similar to !235 (merged).

Additionally:

Why

We need to check that target environment is available before running crawler in full, but ensure that any random error on one of the crawler requests doesn't fail the whole pipeline. Flaky errors can exist on env, especially it's seen on Staging.

Resoling issues like ones mentioned in !235 (merged)

We were noticing that while some jobs like this one exit as expected (exit code 1, immediately) upon encountering an error, some jobs like this one that has an invalid url (instance wasn't available) would output an error code, but exit with exit code 0, after sleeping for the set duration.

Edited by Nailia Iskhakova

Merge request reports