It would be great if there's a way to check the progress and status of content export/import rest service invocations.
One simplistic idea:
- In addition to /cms/ws/exim/export and /cms/ws/exim/import, we can expose one more endpoint: /cms/ws/exim/ps.
- /cms/ws/exim/ps can give a result in `ps`-like format to list all the running tasks like the following:
, where UID means the user ID, PID means the internal job process ID, TTY means the client ip address practically, STIME for start time, TIME for elapsed time, %PRGR means progress per cent, CMD means HTTP method name + request URI. So, users may add any query string just for tagging purpose.
- Detail endpoint for a process like /cms/ws/exim/ps/1 would print out the summary, including all the request params for instance, for the process #1.
- Detail endpoint for a process like /cms/ws/exim/ps/1/logs would print out the logs.