rualark / MGen

MGen: Windows PC C++ music generation and analysis laboratory, playing into MIDI port and exporting MIDI
http://arkhipenko.weebly.com
GNU Affero General Public License v3.0
45 stars 11 forks source link

MGenServer: Implement maintenance mode #2679

Closed rualark closed 5 years ago

rualark commented 5 years ago

There can actually be two maintenance modes:

rualark commented 5 years ago

Another approach to "no processing" mode is to keep tasks in queue without preventing user from starting tasks. This is a better idea because user's workflow does not change except for need to wait longer.

If user's task is stopped, it should be also put in queue. To do this:

  1. Set maintenance parameter in server.pl
  2. Restart server (this will automatically queue running task.
  3. Do maintenance
  4. Reset maintenance parameter in server.pl
  5. Restart server
rualark commented 5 years ago

If there are multiple servers, each server can be in maintenance mode separately. This means that some server will run only admin tasks, while other servers will run any tasks.