mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-14 19:02:27 +03:00
variable naming fixed
This commit is contained in:
parent
7ea8f11a61
commit
d4a8b30a4f
1 changed files with 3 additions and 3 deletions
|
@ -10,15 +10,15 @@ from base.task.task_job import TaskJob
|
|||
class TaskInQueue(threading.Thread):
|
||||
"""docstring for TaskInQueue"""
|
||||
|
||||
def __init__(self, inQueue):
|
||||
def __init__(self, in_queue):
|
||||
super(TaskInQueue, self).__init__()
|
||||
self.inQueue = inQueue
|
||||
self.in_queue = in_queue
|
||||
|
||||
def run(self):
|
||||
# Add task to db. Adding task to db important because task can be lost when processing.
|
||||
# Call plugin manager and process message inside task job
|
||||
try:
|
||||
task = self.inQueue.get()
|
||||
task = self.in_queue.get()
|
||||
print(task)
|
||||
# Can be validate task before processing
|
||||
job = TaskJob(task)
|
||||
|
|
Loading…
Reference in a new issue