Commit 454884e3 authored by Yingjie Xu's avatar Yingjie Xu

Request instances started if no running instances on a software release to be tested.

parent b6a45c0f
...@@ -224,6 +224,15 @@ def main(*args): ...@@ -224,6 +224,15 @@ def main(*args):
now - agent.installed_software_dict[computer][installed_software] > agent.software_live_duration: now - agent.installed_software_dict[computer][installed_software] > agent.software_live_duration:
if agent.requestSoftwareReleaseCleanupOnComputer(computer, installed_software): if agent.requestSoftwareReleaseCleanupOnComputer(computer, installed_software):
del agent.installed_software_dict[computer][installed_software] del agent.installed_software_dict[computer][installed_software]
for installed_software in installed_software_list:
if agent.getSoftwareReleaseUsageOnComputer(computer, installed_software) == 0:
for i in range(3):
reference = "%s_%s_%s" % (installed_software, str(now), str(i))
if agent.requestSoftwareInstanceStartedOnComputer(reference, computer, software):
agent.logger.info("Successfully requested stated a instance of %s on %s", (software, computer))
else:
# agent.requestSoftwareInstanceDestroyedOnComputer()
agent.writeState() agent.writeState()
if pidfile: if pidfile:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment