mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 13:32:22 +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):
|
class TaskInQueue(threading.Thread):
|
||||||
"""docstring for TaskInQueue"""
|
"""docstring for TaskInQueue"""
|
||||||
|
|
||||||
def __init__(self, inQueue):
|
def __init__(self, in_queue):
|
||||||
super(TaskInQueue, self).__init__()
|
super(TaskInQueue, self).__init__()
|
||||||
self.inQueue = inQueue
|
self.in_queue = in_queue
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
# Add task to db. Adding task to db important because task can be lost when processing.
|
# 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
|
# Call plugin manager and process message inside task job
|
||||||
try:
|
try:
|
||||||
task = self.inQueue.get()
|
task = self.in_queue.get()
|
||||||
print(task)
|
print(task)
|
||||||
# Can be validate task before processing
|
# Can be validate task before processing
|
||||||
job = TaskJob(task)
|
job = TaskJob(task)
|
||||||
|
|
Loading…
Reference in a new issue