Maciej Wisniowski wrote:
For startup do this :

def startRemoteTask(event):
    """Start the amazon remotetask on startup."""
    db = event.database
    connection =
    root = connection.root()
    root_folder = root.get(ZopePublication.root_name, None)
    for site in root_folder.values():
        service = component.queryUtility(
            ITaskService, context=site)
        if service is not None:
            if not service.isProcessing():

I assume here that the remote tasks are located in one of the site
directly contained in root.
Works for me now :)

For shutdown :

I have no solution for this right now.
So seems that now it is best to manually click on stop processing button
ZMI before shutting Zope down.

Or use zopectl start/stop.


Zope3-users mailing list

Reply via email to