def __init__(self, old_stdout):
     import curses
     import curses.panel
     from curses.wrapper import wrapper
     self.old_stdout = old_stdout
     self.curses = curses
     self.helper_modules = CFG_BIBTASK_VALID_TASKS
     self.running = 1
     self.footer_auto_mode = "Automatic Mode [A Manual] [1/2/3 Display] [H Help] [l/L Log] [O Opts] [E Edit motd] [Q Quit]"
     self.footer_manual_mode = "Manual Mode%s [A Automatic] [1/2/3 Display Type] [H help] [l/L Log] [O Opts] [E Edit motd] [Q Quit]"
     self.footer_waiting_item = "[R Run] [D Delete] [N Priority]"
     self.footer_running_item = "[S Sleep] [T Stop] [K Kill]"
     self.footer_stopped_item = "[I Initialise] [D Delete] [K Acknowledge]"
     self.footer_sleeping_item = "[W Wake Up] [T Stop] [K Kill]"
     self.item_status = ""
     self.rows = []
     self.panel = None
     self.display = 2
     self.first_visible_line = 0
     self.auto_mode = 0
     self.currentrow = None
     self.current_attr = 0
     self.hostname = gethostname()
     self.allowed_task_types = CFG_BIBSCHED_NODE_TASKS.get(self.hostname, CFG_BIBTASK_VALID_TASKS)
     self.motd = ""
     self.header_lines = 2
     self.read_motd()
     self.selected_line = self.header_lines
     wrapper(self.start)
Beispiel #2
0
 def __init__(self, old_stdout):
     import curses
     import curses.panel
     from curses.wrapper import wrapper
     self.old_stdout = old_stdout
     self.curses = curses
     self.helper_modules = CFG_BIBTASK_VALID_TASKS
     self.running = 1
     self.footer_auto_mode = "Automatic Mode [A Manual] [1/2/3 Display] [H Help] [l/L Log] [O Opts] [E Edit motd] [Q Quit]"
     self.footer_manual_mode = "Manual Mode%s [A Automatic] [1/2/3 Display Type] [H help] [l/L Log] [O Opts] [E Edit motd] [Q Quit]"
     self.footer_waiting_item = "[R Run] [D Delete] [N Priority]"
     self.footer_running_item = "[S Sleep] [T Stop] [K Kill]"
     self.footer_stopped_item = "[I Initialise] [D Delete] [K Acknowledge]"
     self.footer_sleeping_item = "[W Wake Up] [T Stop] [K Kill]"
     self.item_status = ""
     self.rows = []
     self.panel = None
     self.display = 2
     self.first_visible_line = 0
     self.auto_mode = 0
     self.currentrow = None
     self.current_attr = 0
     self.hostname = gethostname()
     self.allowed_task_types = CFG_BIBSCHED_NODE_TASKS.get(
         self.hostname, CFG_BIBTASK_VALID_TASKS)
     self.motd = ""
     self.header_lines = 2
     self.read_motd()
     self.selected_line = self.header_lines
     wrapper(self.start)
Beispiel #3
0
    def __init__(self, debug=False):
        self.cycles_count = 0
        self.debug = debug
        self.hostname = gethostname()
        self.helper_modules = CFG_BIBTASK_VALID_TASKS
        ## All the tasks in the queue that the node is allowed to manipulate
        self.node_relevant_bibupload_tasks = ()
        self.node_relevant_waiting_tasks = ()
        self.node_sleeping_tasks = ()
        self.node_active_tasks = ()
        ## All tasks of all nodes
        self.sleeping_tasks_all_nodes = ()
        self.waiting_tasks_all_nodes = ()
        self.active_tasks_all_nodes = ()
        self.mono_tasks_all_nodes = ()

        self.allowed_task_types = CFG_BIBSCHED_NODE_TASKS.get(self.hostname, CFG_BIBTASK_VALID_TASKS)