mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-15 11:22:18 +03:00
20 lines
499 B
Python
20 lines
499 B
Python
|
#!/usr/bin/python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
||
|
import threading
|
||
|
|
||
|
from base.scope import Scope
|
||
|
|
||
|
|
||
|
class TaskJob(threading.Thread):
|
||
|
"""docstring for TaskJob"""
|
||
|
|
||
|
def __init__(self, task):
|
||
|
super(TaskJob, self).__init__()
|
||
|
scope = Scope.get_instance()
|
||
|
self.task = task
|
||
|
self.pluginManager = scope.get_plugin_manager()
|
||
|
|
||
|
def run(self):
|
||
|
self.pluginManager.process(self.task)
|