From: | Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | pgAdmin 4 commit: Adding a background process executor, and observer. |
Date: | 2016-05-13 03:22:29 |
Message-ID: | E1b13gL-0004Qq-8g@gothos.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Adding a background process executor, and observer.
We will be using the external utilities like pg_dump, pg_dumpall,
pg_restore in background. pgAdmin 4 can be run as a CGI script, hence -
it is not good idea to run those utility in a controlled environment.
The process executor will run them in background, and we will execute
the process executor in detached mode.
Now that - the process executor runs in detached mode, we need an
observer, which will look at the status of the processes. It also reads
output, and error logs on demand.
Thanks - Surinder for helping in some of the UI changes.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=f682f06c944004ee2386a2d75a65ed8e16683987
Modified Files
--------------
web/config.py | 2 +-
.../browser/templates/browser/js/messages.js | 4 +-
web/pgadmin/misc/bgprocess/__init__.py | 122 +++++
web/pgadmin/misc/bgprocess/process_executor.py | 375 ++++++++++++++++
web/pgadmin/misc/bgprocess/processes.py | 385 ++++++++++++++++
.../misc/bgprocess/static/css/bgprocess.css | 153 +++++++
web/pgadmin/misc/bgprocess/static/js/bgprocess.js | 500 +++++++++++++++++++++
web/pgadmin/misc/sql/__init__.py | 6 +-
web/pgadmin/model/__init__.py | 19 +
.../static/js/alertifyjs/pgadmin.defaults.js | 2 +-
web/setup.py | 19 +-
11 files changed, 1578 insertions(+), 9 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Fahar Abbas | 2016-05-13 04:52:53 | Error messages displayed with pgAdmin4.py when user done latest git pull for pgAdmin4 |
Previous Message | Ashesh Vashi | 2016-05-12 19:07:05 | pgAdmin 4 commit: 'pgadmin.utils.storage' has been renamed to 'pgadmin. |