Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- main
- update-pixi
- attempt_fix_progress
schedule:
- cron: "0 0 * * *" # nightly

Expand Down Expand Up @@ -43,8 +44,8 @@ jobs:
environments: ${{ matrix.environment }}
- name: Check dependencies are compatible
run: pip check
- name: Check code quality
run: pre-commit run -a
# - name: Check code quality
# run: pre-commit run -a
- name: Run tests
run: pytest -n 2 --durations=10
- name: Upload artifacts
Expand Down
4 changes: 4 additions & 0 deletions esmvalcore/preprocessor/_dask_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def _draw_bar(
def _draw_stop(self, **kwargs):
if kwargs.get("status") == "finished":
self._draw_bar(remaining=0, all=self.progress.tasks[0].total)
logger.info(self.progress.tasks[0].total)
logger.info("Finished.")
self.progress.stop()


Expand Down Expand Up @@ -228,6 +230,8 @@ def _compute_with_progress(
# < 0: no progress reporting
# = 0: show progress bar
# > 0: log progress at this interval
print("Use distributed?", use_distributed)
print("Logging interval", log_progress_interval)
if log_progress_interval < 0.0:
dask.compute(delayeds)
elif use_distributed:
Expand Down
Loading
Loading