Conversation
|
@manugarri thanks for the PR. It looks like distributed/distributed/diagnostics/progressbar.py Lines 111 to 120 in 8af2826 Are there other kwargs you wish to pass ? If so, perhaps add a test to https://github.com/dask/distributed/blob/master/distributed/diagnostics/tests/test_progressbar.py ? |
|
@quasiben I know, and this PR basically allows you to pass the argument interval to the general function If not the only alternative to reduce the interval (which produces a long log file on Yarn EMR) is to do something like this (which works, but its not as concise). Regarding the tests, I can add them but i am not sure it makes sense (since Im not altering the ProgressBar class at all, only allowing it to process kwargs). |
|
Ah, apologies. I misunderstood. I think if you want to use distributed/distributed/diagnostics/progressbar.py Lines 422 to 428 in 2d43139 @mrocklin do you recall why this assertion is made ? |
Unfortunately not |
|
@quasiben yup that makes sense, it is easy to assign the remaining bar specific args to a variable and pop them off the kwargs so the assertion wont fail (even though it would be good to know why that assert is there) |
|
Checking in, what's the status here? |
|
@manugarri are you planning on removing the assertion and adding a test ? |
|
@quasiben I am, my son was just born 2 days ago and we just left the hospital. Will do a PR as soon as I can :D |
|
@manugarri congratulations!!! be with family -- this can wait |
|
@quasiben I removed the assertion, let me know if its ok :) |
|
@manugarri apologies for dropping this. There are still some linting issues -- if you run def test_progress_function_w_kwargs(client, capsys):
f = client.submit(lambda: 1)
g = client.submit(lambda: 2)
progress(f, interval="20ms")
check_bar_completed(capsys) |
|
Merging this in. Thanks @manugarri ! Also, I notice that this is your first code contribution to this repository. Welcome! |
|
Yes, thank you @manugarri ! Thanks for merging @mrocklin |
|
thanks guys!, i apologize for not adding the test, im a bit behind these days :) |
|
It seems we forgot to merge. Sorry about that. Have gone ahead and merged. Thanks all! 😄 |
* upstream/master: (58 commits) Add unknown pytest markers (dask#2764) Delay lookup of allowed failures. (dask#2761) Change address -> worker in ColumnDataSource for nbytes plot (dask#2755) Remove module state in Prometheus Handlers (dask#2760) Add stress test for UCX (dask#2759) Add nanny logs (dask#2744) Move some of the adaptive logic into the scheduler (dask#2735) Add SpecCluster.new_worker_spec method (dask#2751) Worker dashboard fixes (dask#2747) Add async context managers to scheduler/worker classes (dask#2745) Fix the resource key representation before sending graphs (dask#2716) (dask#2733) Allow user to configure whether workers are daemon. (dask#2739) Pin pytest >=4 with pip in appveyor and python 3.5 (dask#2737) Add Experimental UCX Comm (dask#2591) Close nannies gracefully (dask#2731) add kwargs to progressbars (dask#2638) Add back LocalCluster.__repr__. (dask#2732) Move bokeh module to dashboard (dask#2724) Close clusters at exit (dask#2730) Add SchedulerPlugin TaskState example (dask#2622) ...
* upstream/master: (43 commits) Add unknown pytest markers (dask#2764) Delay lookup of allowed failures. (dask#2761) Change address -> worker in ColumnDataSource for nbytes plot (dask#2755) Remove module state in Prometheus Handlers (dask#2760) Add stress test for UCX (dask#2759) Add nanny logs (dask#2744) Move some of the adaptive logic into the scheduler (dask#2735) Add SpecCluster.new_worker_spec method (dask#2751) Worker dashboard fixes (dask#2747) Add async context managers to scheduler/worker classes (dask#2745) Fix the resource key representation before sending graphs (dask#2716) (dask#2733) Allow user to configure whether workers are daemon. (dask#2739) Pin pytest >=4 with pip in appveyor and python 3.5 (dask#2737) Add Experimental UCX Comm (dask#2591) Close nannies gracefully (dask#2731) add kwargs to progressbars (dask#2638) Add back LocalCluster.__repr__. (dask#2732) Move bokeh module to dashboard (dask#2724) Close clusters at exit (dask#2730) Add SchedulerPlugin TaskState example (dask#2622) ...
This PR allows the user to use the
progressfunction passing progressbar specific arguments, such asintervalfor TextProgressBars.Im not sure I have followed all the contributing guidelines. I read the contributing docs and run the tests, but got some tests failing from master.