This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |