Skip to content

Commit

Permalink
experimental setup for multiple duration messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Mar 1, 2024
1 parent 758fa94 commit b56ce0b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/check_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ jobs:
- name: Setup Python & Poetry Environment
uses: ./.github/actions/prepare_poetry_env

- name: Run tests for creating the docker image
run: >
poetry run pytest
--capture=no
--override-ini=log_cli=true
--override-ini=log_cli_level=INFOtest/integration/test_create_dss_docker_image.py
env: # Set the secret as an env variable
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}

- name: Run build ai-lab tests
run: >
poetry run pytest
Expand Down
5 changes: 4 additions & 1 deletion exasol/ds/sandbox/lib/ansible/ansible_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ def event_handler(self, event: AnsibleEvent) -> bool:
return True

self._last_task = task
self._duration_logger.debug(f"duration: {round(duration)} seconds")
n = len(self._duration_logger.handlers)
self._duration_logger.debug(
f"duration: {round(duration)} seconds task {task} ({n} handlers)")
self._duration_logger.handlers[0].flush()
return True

def run(
Expand Down

0 comments on commit b56ce0b

Please sign in to comment.