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-03-23 17:15:27 +02:00
|
|
|
|
2016-08-24 18:05:54 +03:00
|
|
|
from base.scope import Scope
|
2016-02-29 17:13:39 +02:00
|
|
|
|
2016-03-23 17:15:27 +02:00
|
|
|
|
2016-02-29 17:13:39 +02:00
|
|
|
class TaskJob(threading.Thread):
|
|
|
|
"""docstring for TaskJob"""
|
2016-03-23 17:15:27 +02:00
|
|
|
|
2016-02-29 17:13:39 +02:00
|
|
|
def __init__(self, task):
|
|
|
|
super(TaskJob, self).__init__()
|
2016-09-21 12:05:48 +03:00
|
|
|
scope = Scope.get_instance()
|
2016-02-29 17:13:39 +02:00
|
|
|
self.task = task
|
2016-09-21 12:05:48 +03:00
|
|
|
self.pluginManager = scope.get_plugin_manager()
|
2016-02-29 17:13:39 +02:00
|
|
|
|
|
|
|
def run(self):
|
|
|
|
self.pluginManager.process(self.task)
|