MCPcopy Create free account
hub / github.com/apache/mesos / _wait_for_task

Function _wait_for_task

src/python/cli_new/lib/cli/tests/base.py:512–517  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

510 """
511 @retry(wait=wait_fixed(0.2), stop=stop_after_delay(delay))
512 def _wait_for_task():
513 tasks = http.get_json(master.addr, "tasks")["tasks"]
514 for task in tasks:
515 if task["name"] == name and task["state"] == state:
516 return task
517 raise Exception()
518
519 try:
520 return _wait_for_task()

Callers 1

wait_for_taskFunction · 0.85

Calls 1

get_jsonMethod · 0.80

Tested by

no test coverage detected