#import json
sys.path.append(op.join(op.dirname(op.abspath(__file__)), "framework"))

import job_source as js
import job_scheduler as sched
import data_loader as dl
import utils
import log_files
import event_writer
import configure as conf

import hipchat_job_factory as jf
from hipchat_config import (HipChatConfig, HipChatConfMonitor, handle_ckpts)

all_logs = log_files.get_all_logs()
all_logs.append("ta_hipchat")

_LOGGER = utils.setup_logging("ta_hipchat")


class ModinputJobSource(js.JobSource):
    def __init__(self, stanza_configs):
        self._done = False
        self._job_q = Queue.Queue()
        self.put_jobs(stanza_configs)

    def put_jobs(self, jobs):
        for job in jobs:
            self._job_q.put(job)
Exemple #2
0
def setup_logging_for_ta_util(loglevel="INFO", refresh=False):
    for f in log_files.get_all_logs():
        utils.setup_logging(f, loglevel, refresh)
Exemple #3
0
    def setup_logging(self):
        import log_files

        for log in log_files.get_all_logs():
            utils.setup_logging(log)
#import json
sys.path.append(op.join(op.dirname(op.abspath(__file__)), "framework"))

import job_source as js
import job_scheduler as sched
import data_loader as dl
import utils
import log_files
import event_writer
import configure as conf

import hipchat_job_factory as jf
from hipchat_config import (HipChatConfig, HipChatConfMonitor, handle_ckpts)


all_logs = log_files.get_all_logs()
all_logs.append("ta_hipchat")


_LOGGER = utils.setup_logging("ta_hipchat")

class ModinputJobSource(js.JobSource):
	
	def __init__(self, stanza_configs):
		self._done = False
		self._job_q = Queue.Queue()
		self.put_jobs(stanza_configs)

	def put_jobs(self, jobs):
		for job in jobs:
			self._job_q.put(job)