diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fc2744..7684e7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,9 @@ jobs: just docker-run-trino just check-trino docker tag trino-joinery ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - + - name: Show docker logs + if: failure() + run: docker logs trino-joinery - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: diff --git a/src/drivers/trino/mod.rs b/src/drivers/trino/mod.rs index 0a4f37b..21c7780 100644 --- a/src/drivers/trino/mod.rs +++ b/src/drivers/trino/mod.rs @@ -82,6 +82,7 @@ macro_rules! retry_trino_error { match $e { Ok(val) => break Ok(val), Err(e) if should_retry(&e) && max_tries > 0 => { + eprintln!("Retrying Trino query after error"); sleep(sleep_duration).await; max_tries -= 1; sleep_duration *= 2;