(hq_env: HqEnv, flavor: ManagerFlavor)
| 555 | |
| 556 | @all_flavors |
| 557 | def 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 |
nothing calls this directly
no test coverage detected