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

Function test_pass_worker_time_limit

tests/autoalloc/test_autoalloc.py:557–570  ·  view source on GitHub ↗
(hq_env: HqEnv, flavor: ManagerFlavor)

Source from the content-addressed store, hash-verified

555
556@all_flavors
557def test_pass_worker_time_limit(hq_env: HqEnv, flavor: ManagerFlavor):
558 manager = ExtractSubmitScriptPath(flavor.create_adapter())
559
560 with MockJobManager(hq_env, manager):
561 start_server_with_quick_refresh(hq_env)
562 prepare_tasks(hq_env)
563
564 add_queue(hq_env, manager=flavor.manager_type(), worker_time_limit="30m")
565 script_path = manager.get_script_path()
566 line = parse_exec_line(script_path)
567 assert normalize_output(hq_env, flavor.manager_type(), line.cmd) == snapshot(
568 '<hq-binary> worker start --idle-timeout "5m" --manager "<manager>" --server-dir "<server-dir>/001"'
569 ' --on-server-lost "finish-running" --time-limit "30m"'
570 )
571
572
573@all_flavors

Callers

nothing calls this directly

Calls 10

get_script_pathMethod · 0.95
MockJobManagerClass · 0.85
prepare_tasksFunction · 0.85
parse_exec_lineFunction · 0.85
normalize_outputFunction · 0.85
add_queueFunction · 0.70
create_adapterMethod · 0.45
manager_typeMethod · 0.45

Tested by

no test coverage detected