All pastes #133493 Raw Edit

Miscellany

public text v1 · immutable
#133493 ·published 2006-08-15 22:46 UTC
rendered paste body
def installParcel(parcel, old_version=None):

....

    # The periodic task that uploads logfiles in the background  
    PeriodicTask.update(
        parcel, 'eventLoggerUploadTask',
        invoke = 'eventLogger.UploadTask',
        run_at_startup = True,
        active = True,
        interval = timedelta(minutes=2))


then...


class UploadTask(object):
    def run(self):
        print "HELLO WORLD"
        return True