Bug 6024 - Eaiser way for plugins to run long background jobs
: Eaiser way for plugins to run long background jobs
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Plugins
: 7.0
: PC Other
: -- enhancement with 5 votes (vote)
: Future
Assigned To: Unassigned bug - please assign me!
http://forums.slimdevices.com/showthr...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-02 22:29 UTC by Erland Isaksson
Modified: 2011-11-06 23:23 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erland Isaksson 2007-11-02 22:29:32 UTC
It would be great if there were some easier way for plugins to execute long background jobs.

Slim::Utils::Scheduler works great it you can divide the background job in small chunks, but this isn't always possible. If you use Slim::Utils::Scheduler if background jobs that take long time it affects music playback and makes the SC/SB user interface unusable during the time.

On Linux I can pretty easy create a separate .pl file and start a separate process for that, but this doesn't work on Windows since perl.exe isn't guaranteed to be installed.

Maybe it would it be possible to provide a bgjob.exe/bgjob.pl with SqueezeCenter which a plugin could launch with parameters. The bgjob.exe/bgjob.pl could then use the parameters to load the necessary plugin classes and execute the specified method. 

I know each plugin could bundle its own bgjob.exe, but it feels like it would be better to provide some standard way for plugins to run background jobs that doesn't cause music playback issues. After all it is also in the interest of SqueezeCenter to behave as good as possible even though some plugins are missbehaving by not dividing its background jobs in millisecond chunks.
Comment 1 Blackketter Dean 2007-12-27 13:40:30 UTC
Will look at this post-7.0.
Comment 2 Alan Young 2011-11-06 23:23:17 UTC
Unassigned bugs cannot have a priority.