reduce pyagent heartbeat rate
@@ -168,8 +168,7 @@ class Agent(object):
if status in (RunStatus.QUEUED, RunStatus.RUNNING)
}
commands = self._api.agent_heartbeat(self._agent_id, {}, run_status)
- if not commands:
- continue
+ if commands:
job = Job(commands[0])
logger.debug("Job received: {}".format(job))
if job.type in ["run", "resume"]:
