Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8780887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:10:02+00:00 2026-06-13T20:10:02+00:00

I have a HTML page which has four buttons Start, Stop, Pause and Resume

  • 0

I have a HTML page which has four buttons Start, Stop, Pause and Resume in it. The functionality of the buttons are:

  • Start Button: Starts the backend Simulator. (The Simulator takes around 3 minutes for execution.)
  • Stop Button: Stops the Simulator.
  • Pause Button: Pauses the Simulator.
  • Resume Button: Resumes the Simulator from the paused stage.

Each of the button when clicked goes on to calling a separate view function. The problem I’m facing is that when I click the start button, it starts up the Simulator through a function call in the Python view. But as I mentioned that the simulator takes around 3 minutes for completing it’s execution. So, for the 3 minutes my UI is totally unresponsive. I cannot press Stop, Pause or Resume button untill the current view of Django is rendered.

So what is the best way to approach this problem ? Shall I spawn a non-blocking process for the Simulator and If so how can I get to know after the view has rendered that the new spawned process has completed it’s execution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:10:05+00:00Added an answer on June 13, 2026 at 8:10 pm

    You definitely need Ajax for the front-end.

    For the backend you would use something like celery, with which
    you can execute asynchronous tasks(start/stop emulator). To communicate with celery,
    you could do it by polling, long polling or web sockets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a HTML error page which has a button with text Try
I have an html page which has a link called open. Once the link
I have a page which has an Html.DropDownList which takes in a viewdata parameter.
I have a html page with a form. The form has Div which gets
I have a simple FAQ page in which each item has the following HTML
I have implemented an XMLHttpRequest() call to a standalone html page which simply has
I have a WebView and the it loads a html page which has javascript
I have html page say abc.htm it has 2 anchors which are pointing to
I have an html page which has elements such as the following: <input data-required-by=books
I have a UIWebView which loads an HTML page which has some links to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.