# How to stop prodigy.serve execution ?

**URL:** <https://support.prodi.gy/t/how-to-stop-prodigy-serve-execution/5903>\
**Category:** Uncategorized\
**Tags:** usage, solved\
**Created:** [August 30, 2022, 2:52pm UTC](https://support.prodi.gy/t/how-to-stop-prodigy-serve-execution/5903 "2022-08-30T14:52:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![info2000](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/info2000/32/2190_2.png) [@info2000](https://support.prodi.gy/u/info2000)\
**Post date:** [August 30, 2022, 2:52pm UTC](https://support.prodi.gy/t/how-to-stop-prodigy-serve-execution/5903/1 "2022-08-30T14:52:24Z")

</div>

How can I kill a `prodigy.serve` execution ?  
I plan to start a prodigy instance from a web form, and also wants to stop it to reuse the the same port for others prodigy instance.  
The goal is to have only one prodigy instance running at a time

Thanks

---

<div class="post-metadata">

**Author:** ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)\
**Post date:** [August 30, 2022, 3:36pm UTC](https://support.prodi.gy/t/how-to-stop-prodigy-serve-execution/5903/2 "2022-08-30T15:36:12Z")

</div>

hi @info2000!

Here's a similar suggestion:

> [@stopping prodigy server from web UI](https://support.prodi.gy/t/stopping-prodigy-server-from-web-ui/5850/2):
>
> Hi @washcycle! Interesting use case! I found a similar old post. While it was in Jupyter, the same idea should apply: I have a Mac and found these commands to work (granted I manually grabbed the PID to be safe): # find \<PIDProdigy\> for prodigy session ps -A | grep prodigy # kill PID kill -9 \<PIDProdigy\> Let me know if this helps or if you have any other questions!

Related, I've also seen this post recommended:

> <https://stackoverflow.com/questions/20691258/is-it-possible-in-python-to-kill-process-that-is-listening-on-specific-port-for>

Would either of these not work for you? I suspect you may have already seen these posts or something related.

---

<div class="post-metadata">

**Author:** ![info2000](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/info2000/32/2190_2.png) [@info2000](https://support.prodi.gy/u/info2000)\
**Post date:** [August 30, 2022, 3:59pm UTC](https://support.prodi.gy/t/how-to-stop-prodigy-serve-execution/5903/3 "2022-08-30T15:59:48Z")

</div>

thanks!
