syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
401 stars 40 forks source link

Sam server #197

Closed cyberb closed 7 years ago

cyberb commented 7 years ago

We have several issues like:

  1. No information what is happening right now (if you navigated away)
  2. Not possible to stop installation
  3. No installation progress.
  4. Ability to run parallel installations
  5. Out of disk space issue

I think they are connected and related to the lack of proper back-end. Currently we are mixing web server and ssh server to run various tasks.

Web server cannot run long running tasks as browser times out after some time and we do not really want to hold that connection. SSH Server is not perfect as we have very complex control over what job is running, what it is doing and how to stop it and not stop something else by accident.

Prober back-end should be able to solve these issues.

It should have the following features:

  1. Scheduling a task
  2. Cancelling a task
  3. Listing currently running tasks
  4. Getting task info (name, progress ... )
  5. Ability to limit amount of currently running tasks (I think 1 is a good start)
  6. Notification of completed tasks (successful or failed)

Possible implementations:

vsapronov commented 7 years ago

Let's discuss this.

cyberb commented 7 years ago

We will try snapd (https://github.com/syncloud/platform/issues/263)