lithops-cloud / lithops

A multi-cloud framework for big data analytics and embarrassingly parallel jobs, that provides an universal API for building parallel applications in the cloud ☁️🚀
http://lithops.cloud
Apache License 2.0
317 stars 105 forks source link

Allow progress bar to be turned off #971

Closed tomwhite closed 2 years ago

tomwhite commented 2 years ago

The only way I have found to disable the progress bar is by changing the log level:

import logging
logging.getLogger("lithops.wait").setLevel(logging.WARNING)

It would be nice to be able to do this via a parameter in wait.

I want to do this so I can manage my own progress bars that aggregate a number of lithops operations in one.

JosepSampe commented 2 years ago

@tomwhite Added in master branch. It can now be disabled by setting fexec.wait(show_progressbar=False)

gilv commented 2 years ago

@tomwhite can we close this issue? I will draft new release of Lithops today

tomwhite commented 2 years ago

I just tested this (back from vacation today) and it worked fine. Thanks @JosepSampe and @gilv!