The daemon should run scripts parallelly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Accomplishments Daemon |
Triaged
|
Medium
|
Rafał Cieślak |
Bug Description
For 0.4 it is likely that we'll have scripts that take a long time (minute, few minutes), but they use little resources (mostly waiting for server response over and over again). That means the current scriptrunned will stop running them until this one is finished, not only it lenghtens overall time of running scripts, desktop accomplishments requiring more time to be recognised by the accomplishments system.
This bug represents the need of ability to run scripts in parallel. Ideally there would be ~3 scripts running at the same time. This will *not* use any more resources (including CPU usage) then we currently do, because since all calls are deferred, there is always a single thread executing daemon's code. Managing the scripts to run will be very easy, as we already use a scheduling queue.