# How does distribute clean up Distributed without shutting down parallel processes

**URL:** <https://discourse.julialang.org/t/how-does-distribute-clean-up-distributed-without-shutting-down-parallel-processes/97615>\
**Category:** General Usage\
**Tags:** package, distributed\
**Created:** [April 18, 2023, 1:29pm UTC](https://discourse.julialang.org/t/how-does-distribute-clean-up-distributed-without-shutting-down-parallel-processes/97615 "2023-04-18T13:29:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![13299118606](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/13299118606/32/49095_2.png) [@13299118606](https://discourse.julialang.org/u/13299118606)\
**Post date:** [April 18, 2023, 1:29pm UTC](https://discourse.julialang.org/t/how-does-distribute-clean-up-distributed-without-shutting-down-parallel-processes/97615/1 "2023-04-18T13:29:56Z")

</div>

How does distribute clean up Distributed without shutting down parallel processes  
Because it takes time to start the loop, and obviously the second run is faster than the first, I cycle through the parallel process and don’t want to quit and start the parallel process again.  
First, the process 3 variable is called in the first loop

```julia
remotecall_fetch(varinfo, 3)
   name size summary
   ––––––––––––––––––––––––––––
   Base Module
   Core Module
   Distributed 1.454 GiB Module
   Main Module
The second loop calls process 3 variables
remotecall_fetch(varinfo, 5)
   name size summary
––––––––––––––––––––––––––––––––––––––––––––––
   Base Module
   Core Module
   Distributed 2.907 GiB Module
   Main Module
   drr3d_atuo 0 bytes drr3d_atuo (generic function with 1 method)

```

Use

```julia
clear! (:Distributed) 

```

will cause an error, prompting  
**invalid redefinition of constant Distributed!**
