krono / squeaksource3

Seaside-based Monticello code repository for Squeak, Pharo and GemStone
0 stars 0 forks source link

service vm used for background tasks #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Don't see where 'Service VM on GS' is used ... sending email done in-line 
instead of in different process,  I didn't see any references that looked like 
service vm calls ... what I did see were places that instead of forking a 
process did the versionAdd:to: and something else directly in-line ...

From Tobias:

Look at SSModel>>doInBackground: , overridden in SSRepository>>doInBackground:.
SSProject>>subscriptionsDo: uses it:

subscriptionsDo: aBlock
        ^ self subscriptions do: [:subscription |
                self repository doInBackground: [aBlock value: subscription]]

On GemStone, when SqueakSource-GemStone-Subscription-Core-topa.1 is loaded, 
SSRepository>>doInBackground: looks like that:

SSRepository>>doInBackground: aBlock

        aBlock serverBackgroundTask.
        ^ self

Original issue reported on code.google.com by henrichs...@gmail.com on 6 Dec 2011 at 10:22

GoogleCodeExporter commented 9 years ago

Original comment by henrichs...@gmail.com on 6 Dec 2011 at 10:23

GoogleCodeExporter commented 9 years ago
There is no service vm running right now ... we've got the maintenance vm 
running. But if we use the service vm, we'll need to get it started before the 
upgrade and make sure that is managed by daemontools ...

Original comment by henrichs...@gmail.com on 6 Dec 2011 at 10:24

GoogleCodeExporter commented 9 years ago
Interesitingly, at HPI I have made no additional effort to start a Service VM 
(did no know how, which is it?)
but the background tasks get executed nevertheless (I am receiving email).
Strange...

Original comment by tobiasp...@gmail.com on 6 Dec 2011 at 11:25

GoogleCodeExporter commented 9 years ago
The wiki info for the servicevm is here:

  http://code.google.com/p/glassdb/wiki/ServiceVMExample

which includes references to the script changes. 

There might be two implementations floating around ... when I get around to 
looking into this I will have more info 

Original comment by henrichs...@gmail.com on 15 Dec 2011 at 4:37

GoogleCodeExporter commented 9 years ago
Dale do you have more information on the _two implementations_ ?

Original comment by tobiasp...@gmail.com on 5 Sep 2013 at 1:50