MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / test_stream_task_fail

Function test_stream_task_fail

tests/test_stream.py:298–316  ·  view source on GitHub ↗
(hq_env: HqEnv)

Source from the content-addressed store, hash-verified

296
297
298def test_stream_task_fail(hq_env: HqEnv):
299 hq_env.start_server()
300 os.mkdir("mylog")
301 hq_env.start_workers(1)
302
303 hq_env.command(
304 [
305 "submit",
306 "--stream",
307 "mylog",
308 "--",
309 "bash",
310 "-c",
311 "echo Start; exit 1",
312 ]
313 )
314
315 wait_for_job_state(hq_env, 1, "FAILED")
316 wait_until(lambda: hq_env.command(["output-log", "mylog", "show"]) == "1.0:0> Start\n")
317
318
319def test_stream_task_cancel(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 5

wait_for_job_stateFunction · 0.85
commandMethod · 0.80
wait_untilFunction · 0.50
start_serverMethod · 0.45
start_workersMethod · 0.45

Tested by

no test coverage detected