print("Started aggregator process with ID: {0}".format(_process.pid))
print("\nStarted aggregator process with PID: {0}\n".format(_process.pid))
return_process.pid
defstop_aggregator():
defstop_aggregator():
...
@@ -57,6 +60,7 @@ def stop_aggregator():
...
@@ -57,6 +60,7 @@ def stop_aggregator():
# check if the process is started before trying to terminate it - _process.poll() only returns something if the process has terminated, hence we check for a None value
# check if the process is started before trying to terminate it - _process.poll() only returns something if the process has terminated, hence we check for a None value
if_processisnotNoneand_process.poll()isNone:
if_processisnotNoneand_process.poll()isNone:
_process.terminate()
_process.terminate()
print("\nStopped aggregator process with PID: {0}\n".format(_process.pid))