Skip to content

Instantly share code, notes, and snippets.

View AndreLobato's full-sized avatar

Andre Lobato AndreLobato

View GitHub Profile
import logging
import StringIO
import traceback
import time
class NapWrapper(object):
''' This is the minumum base wrapper interface to comunicate directly with the scheduler. The things you have to do is up to you in each method. You may consider to create a wrapper for long running tasks, if you like to have progress control.
'''
def __init__(self, sleep, pipe=None, logger=logging,**kwargs):