# How to solve after clicking stop button, some requests cannot be executed

**URL:** <https://discuss.streamlit.io/t/how-to-solve-after-clicking-stop-button-some-requests-cannot-be-executed/49734>\
**Category:** Using Streamlit\
**Tags:** rerun\
**Created:** [August 21, 2023, 9:02am UTC](https://discuss.streamlit.io/t/how-to-solve-after-clicking-stop-button-some-requests-cannot-be-executed/49734 "2023-08-21T09:02:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![king007](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/king007/32/29442_2.png) [@king007](https://discuss.streamlit.io/u/king007)\
**Post date:** [August 21, 2023, 9:02am UTC](https://discuss.streamlit.io/t/how-to-solve-after-clicking-stop-button-some-requests-cannot-be-executed/49734/1 "2023-08-21T09:02:34Z")

</div>

Some functions of my app take a long time to execute, more than one minute. So, I clicked the stop button.

 ![Snipaste_2023-08-20_19-56-38](https://global.discourse-cdn.com/streamlit/original/3X/b/9/b9f0a05889daed5c6ea727fc6b41641cd2a88780.png)

After clicking stop button, some requests cannot be executed, including switching pages and executing background functions. There is no response to clicking.

---

<div class="post-metadata">

**Author:** ![dataprofessor](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/dataprofessor/32/44163_2.png) [@dataprofessor](https://discuss.streamlit.io/u/dataprofessor)\
**Post date:** [August 22, 2023, 2:35am UTC](https://discuss.streamlit.io/t/how-to-solve-after-clicking-stop-button-some-requests-cannot-be-executed/49734/2 "2023-08-22T02:35:53Z")

</div>

Hi @king007

As also mentioned in the previous reply, clicking on Stop would terminate the app run thereby resulting in no further running of any processes in the app.

> [@After clicking stop button, some requests cannot be executed, including switching pages, submit st.text\_input](https://discuss.streamlit.io/t/after-clicking-stop-button-some-requests-cannot-be-executed-including-switching-pages-submit-st-text-input/49688/2):
>
> Hi @king007 Using st.stop() would cause Streamlit to not run any statements as it stops execution immediately. More info on the Docs page: If you’d like to have the app continue running then please replace st.stop() with a warning message instead such as using st.warning(). Hope this helps!

But after 1 minute, does the app complete its calculation and show the intended output?

---

<div class="post-metadata">

**Author:** ![king007](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/king007/32/29442_2.png) [@king007](https://discuss.streamlit.io/u/king007)\
**Post date:** [August 22, 2023, 1:03pm UTC](https://discuss.streamlit.io/t/how-to-solve-after-clicking-stop-button-some-requests-cannot-be-executed/49734/3 "2023-08-22T13:03:32Z")

</div>

Because my user got impatient because he waited too long, he clicked the stop button, which may prevent other users from using the app.  
So, is there a way to remove this stop button, or replace this stop button with something else.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [August 24, 2023, 1:04pm UTC](https://discuss.streamlit.io/t/how-to-solve-after-clicking-stop-button-some-requests-cannot-be-executed/49734/4 "2023-08-24T13:04:11Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
