Skip to content

A webpage that fires off another Python script in the background, letting the user move on without stopping background task

Notifications You must be signed in to change notification settings

dmalouf/python_webpage_parallel_process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

python_webpage_parallel_process

A webpage that fires off another Python script in the background, letting the user move on without stopping background task.

This was a little project that was based on my need to fire-off a process that was not bound to a web-user staying on the webpage. I thought it might be fun to use Python for this (instead of my 'native' PHP).

In short:

  1. index.py takes index.html as a template and sends it to the user
  2. In this example, the user's POST, query-string, etc. goes to main.py which...
  3. fires off backgroundTask.py
  4. sends back to the user that all is well
  5. backgroundTask.py is the 'background task' which runs even after main.py is done sending the 'all is well' back to the browser
  6. for my need, this background task runs for about 5 minutes (for example) but is not limited to this timeframe

About

A webpage that fires off another Python script in the background, letting the user move on without stopping background task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages