removed name from worker; just small design fixes
This commit is contained in:
parent
a09cdf980e
commit
7b71188854
2 changed files with 6 additions and 8 deletions
|
|
@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
"""
|
||||
|
||||
|
||||
__version__ = "0.15.2/AMNESIA"
|
||||
__version__ = "0.15.3/AMNESIA"
|
||||
|
||||
import argparse
|
||||
import datetime
|
||||
|
|
@ -125,8 +125,7 @@ def main():
|
|||
|
||||
workers = []
|
||||
for i in range(0, args.instances):
|
||||
name = "LinspectorWorker-"+str(i)
|
||||
process = LinspectorWorker(name, args.corethreads, args.threads)
|
||||
process = LinspectorWorker(args.corethreads, args.threads)
|
||||
workers.append(process)
|
||||
process.daemon = True
|
||||
|
||||
|
|
@ -161,13 +160,13 @@ def main():
|
|||
if instance == args.instances:
|
||||
instance = 0
|
||||
|
||||
print("\nScheduled " + str(job_count) + " jobs")
|
||||
|
||||
schedulers = []
|
||||
for worker in workers:
|
||||
schedulers.append(worker.get_scheduler())
|
||||
worker.start()
|
||||
|
||||
print("\nScheduled " + str(job_count) + " jobs")
|
||||
|
||||
interface = LinspectorInterface(jobs, schedulers, lin_conf, root_logger, __version__)
|
||||
|
||||
if "jsonrpc_backend" in core and core["jsonrpc_backend"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue