# ProgressMeter on a @distributed for loop

**URL:** <https://discourse.julialang.org/t/progressmeter-on-a-distributed-for-loop/68315>\
**Category:** General Usage\
**Tags:** distributed\
**Created:** [September 17, 2021, 7:20am UTC](https://discourse.julialang.org/t/progressmeter-on-a-distributed-for-loop/68315 "2021-09-17T07:20:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Post date:** [September 17, 2021, 7:20am UTC](https://discourse.julialang.org/t/progressmeter-on-a-distributed-for-loop/68315/1 "2021-09-17T07:20:27Z")

</div>

Hi all, I am having trouble using ProgressMeter with a `@distributed` for loop.  
Here is an [MWE](https://github.com/timholy/ProgressMeter.jl/issues/218)  
Any ideas why this is not working?

---

<div class="post-metadata">

**Author:** ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Post date:** [September 17, 2021, 1:04pm UTC](https://discourse.julialang.org/t/progressmeter-on-a-distributed-for-loop/68315/2 "2021-09-17T13:04:15Z")

</div>

Often macros that take `for` loop expressions don’t compose. So you can have only one applied at a time, but not both. I’m sure that you could fix this in ProgressMeters.jl by detecting an `@distributed for` loop and explicitly handling it.

---

<div class="post-metadata">

**Author:** ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Post date:** [September 17, 2021, 2:18pm UTC](https://discourse.julialang.org/t/progressmeter-on-a-distributed-for-loop/68315/3 "2021-09-17T14:18:08Z")

</div>

Thanks. Based on the other thread (where you answered that Dagger may be a better choice than `@distributed`) this question may now be obsolete.
