Ahenk/opt/ahenk/base/task/task_job.py

20 lines
496 B
Python
Raw Normal View History

2016-02-29 17:13:39 +02:00
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
import threading
2016-02-29 17:13:39 +02:00
from base.Scope import Scope
2016-02-29 17:13:39 +02:00
class TaskJob(threading.Thread):
"""docstring for TaskJob"""
2016-02-29 17:13:39 +02:00
def __init__(self, task):
super(TaskJob, self).__init__()
scope = Scope.getInstance()
self.task = task
self.pluginManager = scope.getPluginManager()
def run(self):
self.pluginManager.process(self.task)