added members and processor info to job
This commit is contained in:
parent
152885234b
commit
f0beaa7190
3 changed files with 4 additions and 3 deletions
|
|
@ -14,9 +14,11 @@ def generateId():
|
|||
|
||||
|
||||
class Job:
|
||||
def __init__(self, service, host):
|
||||
def __init__(self, service, host, members, processors):
|
||||
self.service = service
|
||||
self.host = host
|
||||
self.members = members
|
||||
self.processors = processors
|
||||
self.jobInfos = []
|
||||
self.jobThreshold = 0
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,5 @@ class TcpconnectService(Service):
|
|||
jobInfo.set_message("Connection successful established to host: " + jobInfo.get_host() + " to port: " + str(self.port))
|
||||
sock.close()
|
||||
|
||||
|
||||
def create(kwargs):
|
||||
return TcpconnectService(**kwargs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue