hypershell 2.9.0a3__tar.gz → 2.9.0a5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/PKG-INFO +1 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/client_desc.rst +2 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/client_help.rst +15 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/client_usage.rst +1 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/cluster_help.rst +9 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/cluster_usage.rst +1 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_param_ref.rst +15 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/server_desc.rst +5 -4
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/server_help.rst +2 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/submit_desc.rst +2 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/submit_help.rst +11 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/submit_usage.rst +1 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_info_help.rst +1 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_submit_desc.rst +1 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_submit_help.rst +6 -0
- hypershell-2.9.0a5/docs/_include/task_submit_usage.rst +1 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_wait_help.rst +1 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/templates.rst +16 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/alternatives.rst +4 -4
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/security.rst +84 -16
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/pyproject.toml +1 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/share/bash_completion.d/hs +4 -4
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/share/man/man1/hs.1 +67 -16
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/share/man/man1/hsx.1 +67 -16
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/share/man/man1/hyper-shell.1 +67 -16
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/share/zsh/site-functions/_hs +5 -1
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/client.py +164 -52
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/cluster/__init__.py +23 -7
- hypershell-2.9.0a5/src/hypershell/cluster/launch.py +382 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/cluster/local.py +8 -2
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/cluster/remote.py +48 -94
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/cluster/ssh.py +37 -35
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/config.py +1 -0
- hypershell-2.9.0a5/src/hypershell/core/dispatch.py +480 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/logging.py +1 -1
- hypershell-2.9.0a5/src/hypershell/core/queue.py +1131 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/template.py +15 -7
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/tls.py +9 -6
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/data/model.py +211 -44
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/server.py +129 -37
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/submit.py +42 -13
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/task.py +67 -16
- hypershell-2.9.0a5/tests/bench/bench_queue.py +593 -0
- hypershell-2.9.0a5/tests/cluster/build_archive.sh +82 -0
- hypershell-2.9.0a5/tests/cluster/compare.py +282 -0
- hypershell-2.9.0a5/tests/cluster/drive.sh +317 -0
- hypershell-2.9.0a5/tests/cluster/smoke.sh +117 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_autoscale.py +4 -1
- hypershell-2.9.0a5/tests/test_client_request.py +161 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_cluster.py +1 -0
- hypershell-2.9.0a5/tests/test_cluster_compare.py +147 -0
- hypershell-2.9.0a5/tests/test_cluster_launch.py +1448 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_contended_recovery.py +128 -8
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_contended_write.py +36 -1
- hypershell-2.9.0a5/tests/test_dispatch.py +319 -0
- hypershell-2.9.0a5/tests/test_dispatch_staged.py +276 -0
- hypershell-2.9.0a5/tests/test_dispatch_version.py +204 -0
- hypershell-2.9.0a5/tests/test_dispatch_workload.py +258 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_groups.py +34 -11
- hypershell-2.9.0a5/tests/test_queue.py +574 -0
- hypershell-2.9.0a5/tests/test_queue_gc.py +915 -0
- hypershell-2.9.0a5/tests/test_queue_limits.py +234 -0
- hypershell-2.9.0a5/tests/test_queue_start.py +228 -0
- hypershell-2.9.0a5/tests/test_queue_workload.py +126 -0
- hypershell-2.9.0a5/tests/test_server_fsm.py +302 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_submit.py +1 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_writeback.py +3 -1
- hypershell-2.9.0a5/tests/test_zone_dispatch.py +254 -0
- hypershell-2.9.0a5/tests/test_zone_display.py +93 -0
- hypershell-2.9.0a5/tests/test_zone_model.py +279 -0
- hypershell-2.9.0a5/tests/test_zone_postgres.py +133 -0
- hypershell-2.9.0a5/tests/test_zone_workload.py +112 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/uv.lock +1 -1
- hypershell-2.9.0a3/docs/_include/task_submit_usage.rst +0 -1
- hypershell-2.9.0a3/src/hypershell/core/queue.py +0 -454
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/.gitignore +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/CODE_OF_CONDUCT.md +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/LICENSE +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/README.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/Makefile +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/citation.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/cluster_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_edit_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_edit_help.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_edit_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_get_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_get_help.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_get_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_help.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_intro.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_intro_alt.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_pythonpath.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_set_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_set_help.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_set_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_site_vars.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_task_env.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_task_env_alt.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_which_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_which_help.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/config_which_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/database.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/database_alt.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/exit_status.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/initdb_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/initdb_help.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/initdb_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/license.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/security_alt.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/server_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/signals.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_groups_alt.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_info_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_info_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_run_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_run_help.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_run_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_search_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_search_help.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_search_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_update_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_update_help.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_update_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_wait_desc.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/task_wait_usage.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/templates_alt.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_include/tls_cli_options.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_static/custom.css +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_static/logo-dark-mode.png +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/_static/logo-light-mode.png +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/api/client.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/api/cluster.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/api/data.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/api/index.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/api/server.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/api/submit.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/client.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/cluster.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/config.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/config_edit.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/config_get.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/config_set.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/config_which.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/index.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/initdb.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/server.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/submit.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/task_info.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/task_run.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/task_search.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/task_submit.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/task_update.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/cli/task_wait.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/conf.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/config.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/database.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/getting_started.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/index.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/install.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/logging.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/manual.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/docs/templates.rst +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/share/bash_completion.d/hsx +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/__init__.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/config.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/__init__.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/exceptions.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/fsm.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/heartbeat.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/platform.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/pretty_print.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/remote.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/resource.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/signal.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/sys.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/tag.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/thread.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/types.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/core/uuid.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/data/__init__.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/data/core.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/data/timescale.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/src/hypershell/data/upgrade.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/__init__.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/conftest.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/fixtures/README.md +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/fixtures/hypershell-2.8.3.db +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/fixtures/make-2.8.3-db.sh +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/fixtures/make-legacy-postgres.sh +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_cancel.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_card_info.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_card_integration.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_card_render.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_client.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_completions.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_data/__init__.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_data/test_core.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_data/test_model.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_data/test_upgrade.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_factory_fsm.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_group_order.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_initdb.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_list.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_logging.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_main.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_meta_status.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_queue_address_family.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_queue_tls.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_restart.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_retry_gate.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_server.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_signal.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_source.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_status_label.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_submit_json.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_template.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_timescale.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_update.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_upgrade_cli.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_upgrade_postgres.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_writeback_postgres.py +0 -0
- {hypershell-2.9.0a3 → hypershell-2.9.0a5}/tests/test_writeback_statement.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: hypershell
|
|
3
|
-
Version: 2.9.
|
|
3
|
+
Version: 2.9.0a5
|
|
4
4
|
Summary: A cross-platform, high-throughput computing utility for processing shell commands over a distributed, asynchronous queue.
|
|
5
5
|
Project-URL: Homepage, https://hypershell.org
|
|
6
6
|
Project-URL: Documentation, https://hypershell.readthedocs.io
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Launch client directly, run tasks in parallel.
|
|
2
2
|
|
|
3
|
-
The client connects to the server and
|
|
3
|
+
The client connects to the server and, whenever it is ready for work, requests a bundle of tasks
|
|
4
|
+
of its own size (``-b``/``--bundlesize``; the server's size when not given).
|
|
4
5
|
These tasks are run locally by some number of a parallel task executors.
|
|
5
6
|
|
|
6
7
|
The environment for tasks are the same as for the client. Standard output and error
|
|
@@ -17,7 +17,14 @@ Options
|
|
|
17
17
|
See section on `templates`.
|
|
18
18
|
|
|
19
19
|
``-b``, ``--bundlesize`` *SIZE*
|
|
20
|
-
Size of task bundle (default:
|
|
20
|
+
Size of task bundle to request from the server and to return results in (default: the
|
|
21
|
+
server's).
|
|
22
|
+
|
|
23
|
+
When given (on the command line, by ``HYPERSHELL_SUBMIT_BUNDLESIZE``, or in a configuration
|
|
24
|
+
file as ``submit.bundlesize``), the client advertises this size and the server replies with
|
|
25
|
+
up to this many tasks, never more than its cap (``server.bundlemax``). When not given, the
|
|
26
|
+
client advertises no size and the server uses its own ``--bundlesize``; finished tasks are then
|
|
27
|
+
returned in bundles of the built-in default (1).
|
|
21
28
|
|
|
22
29
|
Using larger bundles is a good idea for large distributed workflows; specifically, it is best
|
|
23
30
|
to coordinate bundle size with the number of executors in use by each client.
|
|
@@ -33,6 +40,13 @@ Options
|
|
|
33
40
|
|
|
34
41
|
See also ``--bundlesize``.
|
|
35
42
|
|
|
43
|
+
``--zone`` *NAME*
|
|
44
|
+
Run only tasks of this zone (default: none, tasks without a zone).
|
|
45
|
+
|
|
46
|
+
The client names its zone when it requests work, and the server replies with tasks of that
|
|
47
|
+
zone only. A client given no ``--zone`` (or ``--zone default``) runs only tasks submitted
|
|
48
|
+
without one. See ``--zone`` on `submit`.
|
|
49
|
+
|
|
36
50
|
``-H``, ``--host`` *ADDR*
|
|
37
51
|
Hostname or IP address to connect with server (default: localhost).
|
|
38
52
|
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
``[-N NUM]`` ``[-t TEMPLATE]`` ``[-b SIZE]`` ``[-w SEC]`` ``[-H ADDR]`` ``[-p PORT]``
|
|
3
3
|
``[-k KEY]`` ``[--capture | [-o PATH] [-e PATH]]`` ``[--no-confirm]``
|
|
4
4
|
``[-d SEC]`` ``[-T SEC]`` ``[-W SEC]`` ``[-S SEC]`` ``[-R NUM]``
|
|
5
|
-
``[-C NUM]`` ``[-M MEM]`` ``[--monitor]``
|
|
5
|
+
``[-C NUM]`` ``[-M MEM]`` ``[--monitor]`` ``[--zone NAME]``
|
|
6
6
|
``[--no-tls | [--tls-ca PATH] [--tls-cert PATH] [--tls-key PATH]]``
|
|
@@ -116,6 +116,13 @@ Options
|
|
|
116
116
|
With ``--no-db`` enabled, there is no scheduler and instead the `submit` thread publishes
|
|
117
117
|
bundles directly to the queue.
|
|
118
118
|
|
|
119
|
+
``--zone`` *NAME*
|
|
120
|
+
Zone of the submitted tasks and of every client the cluster launches (default: none).
|
|
121
|
+
|
|
122
|
+
The tasks read from *FILE* (or ``--from-json``) are placed in this zone, and each client is
|
|
123
|
+
launched with the same ``--zone``, so it runs them. Zones are recorded in the database, so
|
|
124
|
+
``--zone`` cannot be used with ``--no-db``.
|
|
125
|
+
|
|
119
126
|
``--initdb``
|
|
120
127
|
Auto-initialize database.
|
|
121
128
|
|
|
@@ -188,7 +195,8 @@ Options
|
|
|
188
195
|
|
|
189
196
|
``-E``, ``--env``
|
|
190
197
|
Send environment variables. Only for ``--ssh`` mode, all ``HYPERSHELL_`` prefixed environment
|
|
191
|
-
variables can be exported to the remote clients
|
|
198
|
+
variables can be exported to the remote clients, except ``HYPERSHELL_SERVER_AUTH``, which is
|
|
199
|
+
never sent this way.
|
|
192
200
|
|
|
193
201
|
``--remote-exe`` *PATH*
|
|
194
202
|
Path to remote executable on the client side.
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
``[-H ADDR]`` ``[-p PORT]`` ``[-r NUM [--eager]]`` ``[-f PATH]`` ``[--capture | [-o PATH] [-e PATH]]``
|
|
4
4
|
``[--ssh [HOST... | --ssh-group NAME] [--env] | --mpi | --launcher=ARGS...]``
|
|
5
5
|
``[--no-db [--no-confirm] | --initdb]`` ``[-d SEC]`` ``[-T SEC]`` ``[-W SEC]`` ``[-S SEC]`` ``[-R NUM]``
|
|
6
|
-
``[-c NUM]`` ``[-m MEM]`` ``[-C NUM]`` ``[-M MEM]`` ``[--monitor]``
|
|
6
|
+
``[-c NUM]`` ``[-m MEM]`` ``[-C NUM]`` ``[-M MEM]`` ``[--monitor]`` ``[--zone NAME]``
|
|
7
7
|
``[--autoscaling [MODE] [-P SEC] [-F VALUE] [-I NUM] [-X NUM] [-Y NUM]]``
|
|
8
8
|
``[--no-tls | [--tls-ca PATH] [--tls-cert PATH] [--tls-key PATH]]``
|
|
@@ -205,8 +205,17 @@
|
|
|
205
205
|
Using larger bundles is a good idea for large distributed workflows; specifically, it is best
|
|
206
206
|
to coordinate bundle size with the number of executors in use by each client.
|
|
207
207
|
|
|
208
|
+
It is also the size of the bundle given to a client that advertises no size of its own.
|
|
209
|
+
|
|
208
210
|
See also ``-b``/``--bundlesize`` command-line option.
|
|
209
211
|
|
|
212
|
+
``.bundlemax``
|
|
213
|
+
Most tasks the server hands a client in one reply (default: `1000`).
|
|
214
|
+
|
|
215
|
+
A client advertises its own bundle size (its ``-b``); the server never replies with more
|
|
216
|
+
than this many tasks, whatever a client asks for. The effective cap is never smaller than
|
|
217
|
+
the server's own ``.bundlesize``. There is no command-line option.
|
|
218
|
+
|
|
210
219
|
``.attempts``
|
|
211
220
|
Attempts for auto-retry on failed tasks (default: `1`).
|
|
212
221
|
|
|
@@ -372,6 +381,11 @@
|
|
|
372
381
|
Using larger bundles is a good idea for large distributed workflows; specifically, it is best
|
|
373
382
|
to coordinate bundle size with the number of executors in use by each client.
|
|
374
383
|
|
|
384
|
+
The `client` reads its ``-b``/``--bundlesize`` default from this key. When it is set (here
|
|
385
|
+
or by ``HYPERSHELL_SUBMIT_BUNDLESIZE``), a client advertises it as the size of bundle it
|
|
386
|
+
requests; when it is left at the built-in default, a client advertises no size and the
|
|
387
|
+
server uses its own.
|
|
388
|
+
|
|
375
389
|
See also ``-b``/``--bundlesize`` command-line option.
|
|
376
390
|
|
|
377
391
|
``.bundlewait``
|
|
@@ -508,7 +522,7 @@
|
|
|
508
522
|
|
|
509
523
|
``.theme``
|
|
510
524
|
Color scheme to use by default in output (default: `monokai`), such as with
|
|
511
|
-
``hs info`` and ``hs
|
|
525
|
+
``hs info`` and ``hs list``.
|
|
512
526
|
|
|
513
527
|
This option is passed to the `rich <https://rich.readthedocs.io/en/latest/>`_ library.
|
|
514
528
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Launch server, schedule directly or asynchronously from database.
|
|
2
2
|
|
|
3
|
-
The server includes a scheduler component that pulls tasks from the database and
|
|
4
|
-
them
|
|
3
|
+
The server includes a scheduler component that pulls tasks from the database and stages them
|
|
4
|
+
for clients, which request bundles of them when they are ready for work. It also has a receiver that collects the results
|
|
5
5
|
of finished tasks. Optionally, the server can submit tasks (*FILE*). When submitting tasks,
|
|
6
6
|
the ``-w``/``--bundlewait`` and ``-b``/``--bundlesize`` options are the same as for the
|
|
7
7
|
*submit* workflow.
|
|
@@ -9,5 +9,6 @@ the ``-w``/``--bundlewait`` and ``-b``/``--bundlesize`` options are the same as
|
|
|
9
9
|
With ``--max-retries`` greater than zero, the scheduler will check for a non-zero exit status
|
|
10
10
|
for tasks and re-submit them if their previous number of attempts is less.
|
|
11
11
|
|
|
12
|
-
Tasks are bundled
|
|
13
|
-
is one, meaning that at small scales there is
|
|
12
|
+
Tasks are bundled for each client at the size it asks for, or at the server's ``-b``/``--bundlesize``
|
|
13
|
+
when it asks for none. By default the bundle size is one, meaning that at small scales there is
|
|
14
|
+
greater concurrency.
|
|
@@ -32,7 +32,8 @@ Options
|
|
|
32
32
|
The default value allows for greater concurrency and responsiveness on small scales. This is
|
|
33
33
|
used by the `submit` thread to accumulate bundles for either database commits and/or publishing
|
|
34
34
|
to the queue. If a database is in use, the scheduler thread selects tasks from the database in
|
|
35
|
-
batches of this size.
|
|
35
|
+
batches of this size. It is also the size of the bundle given to a client that advertises no
|
|
36
|
+
size of its own (a client's ``-b`` is its advertised size).
|
|
36
37
|
|
|
37
38
|
Using larger bundles is a good idea for large distributed workflows; specifically, it is best
|
|
38
39
|
to coordinate bundle size with the number of executors in use by each client.
|
|
@@ -5,7 +5,8 @@ If a single positional argument refers to a non-executable file path,
|
|
|
5
5
|
tasks will be read from the file, one per line (use ``-f``/``--task-file`` to be explicit).
|
|
6
6
|
|
|
7
7
|
Tasks are accumulated and published in bundles to the database by default.
|
|
8
|
-
With ``-q``/``--queue``, tasks are submitted directly to a live queue, bypassing the database
|
|
8
|
+
With ``-q``/``--queue``, tasks are submitted directly to a live queue, bypassing the database;
|
|
9
|
+
the server must be running without a database (``--no-db``).
|
|
9
10
|
The ``-b``/``--bundlesize`` and ``-w``/``--bundlewait`` options control the
|
|
10
11
|
size of these bundles and how long to wait before flushing tasks regardless of
|
|
11
12
|
how many have accumulated.
|
|
@@ -44,6 +44,9 @@ Options
|
|
|
44
44
|
scheduling. This bypasses the database entirely, which is useful for transient
|
|
45
45
|
workflows or when a database is not configured.
|
|
46
46
|
|
|
47
|
+
The server must be running without a database (``--no-db``). A server with a database
|
|
48
|
+
schedules only from it, so it refuses the submission and the command exits with an error.
|
|
49
|
+
|
|
47
50
|
Requires ``-H``, ``-p``, and ``-k`` options to specify the server connection.
|
|
48
51
|
|
|
49
52
|
``-H``, ``--host`` *ADDR*
|
|
@@ -118,6 +121,14 @@ Options
|
|
|
118
121
|
All tasks default to group 0 for backwards compatibility. Users can organize tasks into
|
|
119
122
|
multiple groups (e.g., 0, 1, 2, ...) where lower-numbered groups execute first.
|
|
120
123
|
|
|
124
|
+
``--zone`` *NAME*
|
|
125
|
+
Zone of the submitted tasks (default: none, the reserved default zone).
|
|
126
|
+
|
|
127
|
+
Only a client launched with the same ``--zone`` runs these tasks; a client given no
|
|
128
|
+
``--zone`` runs only tasks without one. Zone names are arbitrary text (``default`` names the
|
|
129
|
+
default zone). Zones are recorded in the database, so ``--zone`` cannot be used with
|
|
130
|
+
``--queue``. Zone is placement only: task groups still run in order across all zones.
|
|
131
|
+
|
|
121
132
|
``--initdb``
|
|
122
133
|
Auto-initialize database.
|
|
123
134
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
``hs`` ``submit`` ``[-h]`` ``[ARGS... | -f FILE | --from-json SPEC]``
|
|
2
2
|
``[-q [-H ADDR] [-p NUM] [-k KEY] | --initdb]``
|
|
3
3
|
``[-b NUM]`` ``[-w SEC]`` ``[-c NUM]`` ``[-m MEM]`` ``[-W SEC]`` ``[-g NUM]``
|
|
4
|
-
``[--repeat | --update]`` ``[--template CMD]`` ``[-t TAG...]``
|
|
4
|
+
``[--repeat | --update]`` ``[--template CMD]`` ``[-t TAG...]`` ``[--zone NAME]``
|
|
5
5
|
``[--no-tls | [--tls-ca PATH] [--tls-cert PATH] [--tls-key PATH]]``
|
|
@@ -9,7 +9,7 @@ Options
|
|
|
9
9
|
|
|
10
10
|
``-f``, ``--format`` *FORMAT*
|
|
11
11
|
Format task info ([normal], card, json, yaml). The ``card`` format renders the task as a
|
|
12
|
-
richly-formatted, bordered panel with a color-coded status badge (see ``
|
|
12
|
+
richly-formatted, bordered panel with a color-coded status badge (see ``hs list``).
|
|
13
13
|
|
|
14
14
|
``--json``
|
|
15
15
|
Format metadata output as JSON.
|
|
@@ -17,3 +17,9 @@ Options
|
|
|
17
17
|
groups of tasks. They are defined with both a `key` and `value` (e.g., ``--tag file:a``).
|
|
18
18
|
The default `value` for tags is blank. When searching with tags, not specifying a `value`
|
|
19
19
|
will return any task with that `key` defined regardless of `value` (including blank).
|
|
20
|
+
|
|
21
|
+
``--zone`` *NAME*
|
|
22
|
+
Zone of the task (default: none, the reserved default zone).
|
|
23
|
+
|
|
24
|
+
Only a client launched with the same ``--zone`` runs the task; a client given no ``--zone``
|
|
25
|
+
runs only tasks without one.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
``hs`` ``task`` ``submit`` ``[-h]`` ``[-t TAG [TAG...]]`` ``[--zone NAME]`` ``--`` ``ARGS...``
|
|
@@ -175,6 +175,13 @@ The incoming command-line args can be substituted with an ``@``.
|
|
|
175
175
|
``{% mktemp -d %}``
|
|
176
176
|
Create temporary directory and insert its path.
|
|
177
177
|
|
|
178
|
+
When a client expands the template, the command runs with the client's own
|
|
179
|
+
environment, without ``HYPERSHELL_SERVER_AUTH`` (see :doc:`/security`). That is
|
|
180
|
+
the environment the client's tasks inherit, before the client adds the
|
|
181
|
+
``[export]`` values and the ``TASK_*`` variables for each task. So the command
|
|
182
|
+
sees an ``[export]`` value only if the client's own environment already holds
|
|
183
|
+
it, as it does for a client that ``hs cluster`` starts through a launcher.
|
|
184
|
+
|
|
178
185
|
-------------------
|
|
179
186
|
|
|
180
187
|
Lambda Expressions
|
|
@@ -186,7 +193,15 @@ Arbitrary Python expressions can be expanded with the ``{= =}`` notation.
|
|
|
186
193
|
The input argument can be used within the expression with the variable ``x``.
|
|
187
194
|
|
|
188
195
|
Exposed standard library modules include ``os``, ``os.path`` as ``path``,
|
|
189
|
-
``math`` and ``datetime`` as ``dt``.
|
|
196
|
+
``math`` and ``datetime`` as ``dt``. The expression is evaluated in the
|
|
197
|
+
process that expands the template, so ``os.environ`` is that process's own
|
|
198
|
+
environment. Under a client that ``hs cluster`` starts as a process of its own,
|
|
199
|
+
through a launcher or over SSH, it includes ``HYPERSHELL_SERVER_AUTH``
|
|
200
|
+
(see :doc:`/security`). Under the default local mode, whose client runs inside
|
|
201
|
+
the ``hs cluster`` process, it includes the variable only if the environment
|
|
202
|
+
that starts ``hs cluster`` already sets it: the key that run mints is never put
|
|
203
|
+
in that process's environment. A client started by hand with ``-k`` has it there
|
|
204
|
+
only if its own environment sets it.
|
|
190
205
|
|
|
191
206
|
Incoming arguments are intelligently coerced into the expected type.
|
|
192
207
|
E.g., ``2`` will be an integer, ``4.67`` a float, ``null`` and ``none``
|
|
@@ -179,8 +179,8 @@ scope: each lives and dies inside a *single* allocation, with state kept in run-
|
|
|
179
179
|
files (``.completed``, ``.tfin``, ``_status.txt``) rather than a cross-run catalog, and
|
|
180
180
|
their workers are the fixed node set of the current job. *HyperShell* shares the same flat
|
|
181
181
|
front door but runs a persistent server backed by a SQL database whose task catalog spans
|
|
182
|
-
many runs and allocations, with history, tags, retries, and a
|
|
183
|
-
|
|
182
|
+
many runs and allocations, with history, tags, retries, and a management
|
|
183
|
+
CLI (``submit``/``list``/``info``/``update``/``wait``) — and its clients elastically join
|
|
184
184
|
and leave rather than being pinned to one job. The bundlers are the right choice when one
|
|
185
185
|
allocation and zero infrastructure is all you need; *HyperShell* when the workload outgrows
|
|
186
186
|
a single job or you want a durable, queryable record.
|
|
@@ -229,7 +229,7 @@ Where *HyperShell* earns *its* keep, and where the two genuinely differ:
|
|
|
229
229
|
|
|
230
230
|
* **State model.** *HyperShell* keeps a **SQL database in the loop** (SQLite or PostgreSQL):
|
|
231
231
|
a persistent, directly SQL-queryable task catalog with cross-run history, ``key:value``
|
|
232
|
-
tags, and a rich ``
|
|
232
|
+
tags, and a rich ``submit``/``list``/``update`` CLI. HyperQueue keeps state in the running server's
|
|
233
233
|
memory and persists it *optionally* to an append-only binary **journal**; you inspect it
|
|
234
234
|
by asking the live server over the CLI (with JSON output the docs mark unstable), not by
|
|
235
235
|
querying a database. For workflows where the task catalog *is* the deliverable — auditing,
|
|
@@ -406,7 +406,7 @@ concepts (``nodes_per_block``, launchers, ``init/min/max_blocks``, ``parallelism
|
|
|
406
406
|
the user as code to tune per site. That is real power for dependency-bearing, heterogeneous,
|
|
407
407
|
multi-resource workflows — and real overhead for a flat command sweep. Its durable state is
|
|
408
408
|
an *optional* SQLite monitoring sidecar, not a submit/search/update task catalog; there is no
|
|
409
|
-
``
|
|
409
|
+
``list``/``wait`` CLI over a database of record.
|
|
410
410
|
|
|
411
411
|
But the sharpest distinction is architectural — and, importantly, it is *not* about scale.
|
|
412
412
|
Node count is a red herring here: the headline ~250,000-worker figure belonged to Parsl's
|
|
@@ -33,15 +33,16 @@ Architecture
|
|
|
33
33
|
Components
|
|
34
34
|
^^^^^^^^^^
|
|
35
35
|
|
|
36
|
-
*HyperShell* is built on Python's :class:`multiprocessing.managers.BaseManager`
|
|
37
|
-
:class:`
|
|
38
|
-
roles:
|
|
36
|
+
*HyperShell* is built on Python's :class:`multiprocessing.managers.BaseManager` infrastructure,
|
|
37
|
+
serving threading :class:`queue.Queue` objects from within the server process. The runtime
|
|
38
|
+
decomposes into three roles:
|
|
39
39
|
|
|
40
40
|
* **Submit** ingests shell commands from ``stdin`` or files and writes them to the database
|
|
41
41
|
(SQLite or PostgreSQL) with stable UUIDs.
|
|
42
42
|
|
|
43
43
|
* **Server** pulls pending tasks from the database, bundles them, and exposes four
|
|
44
|
-
|
|
44
|
+
queues to clients via RPC over TCP. The server process itself accepts and handles these
|
|
45
|
+
connections (there is no separate manager process):
|
|
45
46
|
|
|
46
47
|
* ``scheduled`` — task bundles awaiting execution
|
|
47
48
|
* ``completed`` — results returned from clients
|
|
@@ -70,7 +71,7 @@ channel:
|
|
|
70
71
|
through the queue. Task ``stdout`` and ``stderr`` do *not* — they are written to disk
|
|
71
72
|
on the client (locally, or on a shared filesystem if one is configured) and retrieved
|
|
72
73
|
on demand over SFTP via :class:`~hypershell.core.remote.SSHConnection` when the
|
|
73
|
-
operator runs ``hs
|
|
74
|
+
operator runs ``hs info --stdout`` or similar. Without transport encryption, the
|
|
74
75
|
metadata that *does* flow over the queue (including the authentication handshake) is
|
|
75
76
|
readable on the wire.
|
|
76
77
|
|
|
@@ -128,9 +129,10 @@ TLS.
|
|
|
128
129
|
|
|
129
130
|
The :class:`hypershell.core.queue.SecureManager` class selects this serializer when an active
|
|
130
131
|
:class:`hypershell.core.tls.TLSConfig` is supplied. If TLS is disabled (or no configuration
|
|
131
|
-
is found), ``SecureManager``
|
|
132
|
-
the
|
|
133
|
-
|
|
132
|
+
is found), ``SecureManager`` selects the ``'hypershell-plain'`` serializer instead. Its pair is
|
|
133
|
+
the stock listener and client, with ``TCP_NODELAY`` set on each TCP connection where the
|
|
134
|
+
platform allows it. The framing, the handshake, and every byte on the wire are those of a stock
|
|
135
|
+
``BaseManager``, so cleartext deployments remain supported for constrained environments.
|
|
134
136
|
|
|
135
137
|
|
|
|
136
138
|
|
|
@@ -166,15 +168,81 @@ placeholder key and enforces a minimum key policy: the key must be at least 16 c
|
|
|
166
168
|
drawn from ``[A-Za-z0-9._+/=-]`` (which admits hex, URL-safe tokens, and standard Base64). The
|
|
167
169
|
key generators used in the deployment guides below satisfy this policy.
|
|
168
170
|
|
|
169
|
-
.. admonition::
|
|
171
|
+
.. admonition:: How cluster launches hand the key to their clients
|
|
170
172
|
:class: note
|
|
171
173
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
When ``hs cluster`` starts its clients as separate processes (``--launcher``, ``--mpi``,
|
|
175
|
+
``--autoscaling`` and ``--ssh``), the per-invocation key is on no command line, either on
|
|
176
|
+
the launching host or on the client hosts. Every client reads its key from the
|
|
177
|
+
``HYPERSHELL_SERVER_AUTH`` environment variable when no ``-k`` is given, and the launch
|
|
178
|
+
delivers it there.
|
|
179
|
+
|
|
180
|
+
* **Launcher modes** (``--launcher``, ``--mpi`` and ``--autoscaling``). The launcher is
|
|
181
|
+
started with the key in its environment, and must pass that environment through to the
|
|
182
|
+
clients it starts. ``srun`` (with its default ``--export=ALL``), MPICH, Intel MPI and
|
|
183
|
+
Flux do. Only when the launcher is one Open MPI may provide does the launch also ask
|
|
184
|
+
Open MPI to forward the variable to remote ranks, by name: through
|
|
185
|
+
``OMPI_MCA_mca_base_env_list``, keeping names already set there, or, if the launcher's
|
|
186
|
+
arguments already hold ``-x`` (also written ``--x``, or either with ``=``; Open MPI 4
|
|
187
|
+
does not accept ``-x`` together with that parameter), by adding
|
|
188
|
+
``-x HYPERSHELL_SERVER_AUTH``. That is ``--mpi``, or a ``--launcher`` whose first word
|
|
189
|
+
has the base name ``mpirun``, ``mpiexec``, ``orterun`` or ``prterun``, or ``mpirun`` or
|
|
190
|
+
``mpiexec`` with a dotted suffix, such as Debian's ``mpirun.openmpi`` (an MPICH name
|
|
191
|
+
such as ``mpiexec.hydra`` matches too; MPICH ignores the Open MPI parameter). Only the
|
|
192
|
+
first word counts: ``srun mpirun`` gets neither, as do ``srun``, any other launcher,
|
|
193
|
+
and ``--autoscaling`` with no launcher. If such a launcher needs Open MPI to forward
|
|
194
|
+
the variable, add ``-x HYPERSHELL_SERVER_AUTH`` (the name only) to ``--launcher``. A
|
|
195
|
+
launcher set to drop the environment, such as ``srun --export=NONE``, leaves its
|
|
196
|
+
clients without the key, so they cannot authenticate.
|
|
197
|
+
Such a client exits with a ``CRITICAL`` error that names ``HYPERSHELL_SERVER_AUTH`` and
|
|
198
|
+
the launcher not passing the environment as the likely cause. With TLS on, where the
|
|
199
|
+
dropped environment also held the client's TLS settings, the client fails to verify the
|
|
200
|
+
server's certificate before it authenticates; when it has no key either, that error
|
|
201
|
+
names the same likely cause.
|
|
202
|
+
|
|
203
|
+
* **SSH** (``--ssh``). The key travels on the ssh channel's standard input. On each remote
|
|
204
|
+
host a short POSIX ``sh`` step reads it into ``HYPERSHELL_SERVER_AUTH`` using shell
|
|
205
|
+
builtins, exports it, and replaces itself with the client, so the key is on no command
|
|
206
|
+
line there either. With ``--env``, the other ``HYPERSHELL_*`` variables of the launching
|
|
207
|
+
environment are still passed on ssh's command line, one ``NAME=value`` word each, with
|
|
208
|
+
the value quoted for a POSIX shell, so a POSIX login shell on the remote host reads back
|
|
209
|
+
exactly that value, and no value can run into another word. ``HYPERSHELL_SERVER_AUTH`` is left out by name before any
|
|
210
|
+
word is built, so it is never among them, whatever the other values hold. (A name that
|
|
211
|
+
is not a valid shell variable name is left out too, with a warning.) The launch owns ssh's standard input and always passes ``-T``, so no remote
|
|
212
|
+
terminal is allocated. A ``-t`` or ``-tt`` in ``--ssh-args`` or ``ssh.args``
|
|
213
|
+
therefore has no effect on client launches, and a bare ``-n`` there is dropped with a
|
|
214
|
+
warning. If no key arrives, for example because a wrapper around ``ssh`` closes its
|
|
215
|
+
standard input, the remote step prints a message naming ``HYPERSHELL_SERVER_AUTH`` and
|
|
216
|
+
ssh's standard input, and exits before any client starts.
|
|
217
|
+
|
|
218
|
+
The key is also redacted from *HyperShell*'s own launch logs, at every level.
|
|
219
|
+
|
|
220
|
+
Tasks run with their client's environment, except that the client does not pass
|
|
221
|
+
``HYPERSHELL_SERVER_AUTH`` to them, and takes that name out of
|
|
222
|
+
``OMPI_MCA_mca_base_env_list`` (keeping any other names, and dropping the variable if none
|
|
223
|
+
is left). The client runs the shell commands of ``{% %}`` template patterns, once per
|
|
224
|
+
task, with that same environment. So, whatever the launch mode, neither a task's
|
|
225
|
+
environment nor a ``{% %}`` command's holds the key or the Open MPI entry the launch set,
|
|
226
|
+
unless the configuration gives it explicitly. This keeps the key out of an environment
|
|
227
|
+
that a task dumps or logs by accident. It does not hide the key from task code that looks
|
|
228
|
+
for it: a task runs as the same user as its client, and that user can generally read the
|
|
229
|
+
client's environment. This applies to clients from this release on; an older client under
|
|
230
|
+
a newer launcher still passes its environment to its tasks unchanged.
|
|
231
|
+
|
|
232
|
+
A task can be given the key in two explicit ways:
|
|
233
|
+
|
|
234
|
+
* An ``[export]`` entry for ``HYPERSHELL_SERVER_AUTH`` (or a
|
|
235
|
+
``HYPERSHELL_EXPORT_HYPERSHELL_SERVER_AUTH`` variable) hands every task a key the
|
|
236
|
+
operator holds, such as the key of a hand-started ``hs server``. Its values are taken
|
|
237
|
+
literally, so it cannot carry the key an ``hs cluster`` run mints, which no one is shown.
|
|
238
|
+
* A ``{= =}`` lambda pattern is Python the client evaluates itself, with ``os`` exposed,
|
|
239
|
+
so ``os.environ`` there is the client's own environment, key included. A template that
|
|
240
|
+
reads it does so on purpose.
|
|
241
|
+
|
|
242
|
+
A task that runs a nested ``hs cluster`` needs neither: that run mints its own key for
|
|
243
|
+
its own server and clients.
|
|
244
|
+
|
|
245
|
+
A directly configured ``server.auth`` is stored in plaintext in the config file and printed
|
|
178
246
|
verbatim by ``hs config get``; prefer the ``_eval`` / ``_env`` suffixes (see below) to
|
|
179
247
|
keep the secret out of the file.
|
|
180
248
|
|
|
@@ -826,7 +894,7 @@ Independent of the deployment style above:
|
|
|
826
894
|
* **Enable audit logging.** Set ``logging.style = "detailed"`` (or ``"system"``) and ship
|
|
827
895
|
logs to a central collector. The server logs every client connection, every task
|
|
828
896
|
dispatched, and every completion. See :ref:`logging <logging>` for details. The
|
|
829
|
-
per-invocation auth key
|
|
897
|
+
per-invocation auth key never appears in launch logs, but avoid shipping full configuration
|
|
830
898
|
dumps (which contain a directly-set ``server.auth``) to shared log infrastructure.
|
|
831
899
|
|
|
832
900
|
* **Sanitize task input.** When generating tasks programmatically, treat the command
|
|
@@ -284,7 +284,7 @@ function _hs_task_submit() {
|
|
|
284
284
|
tag) _hs_complete_tags "${current}"; return ;;
|
|
285
285
|
esac
|
|
286
286
|
|
|
287
|
-
COMPREPLY=($(compgen -W "-h --help -t --tag --" -- "${current}"))
|
|
287
|
+
COMPREPLY=($(compgen -W "-h --help -t --tag --zone --" -- "${current}"))
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
|
|
@@ -521,7 +521,7 @@ function _hs_submit() {
|
|
|
521
521
|
local previous="${COMP_WORDS[COMP_CWORD - 1]}"
|
|
522
522
|
local all_opts="-h --help -f --task-file --from-json -q --queue -H --host -p --port -k --auth
|
|
523
523
|
--no-tls --tls-key --tls-cert --tls-ca --template -t --tag -b --bundlesize -w --bundlewait
|
|
524
|
-
-c --cores -m --memory -W --timeout -g --group --repeat --update --initdb --"
|
|
524
|
+
-c --cores -m --memory -W --timeout -g --group --zone --repeat --update --initdb --"
|
|
525
525
|
|
|
526
526
|
if [ "${COMP_CWORD}" -eq 2 ]
|
|
527
527
|
then
|
|
@@ -578,7 +578,7 @@ function _hs_client() {
|
|
|
578
578
|
-H --host -p --port -k --auth --no-tls --tls-key --tls-cert --tls-ca
|
|
579
579
|
-d --delay-start --no-confirm -o --output -e --errors --capture
|
|
580
580
|
-C --client-cores -M --client-memory --monitor
|
|
581
|
-
-T --timeout -W --task-timeout -R --ratelimit -S --signalwait"
|
|
581
|
+
-T --timeout -W --task-timeout -R --ratelimit -S --signalwait --zone"
|
|
582
582
|
|
|
583
583
|
case "${previous}" in
|
|
584
584
|
-o | --output | -e | --errors | --tls-key | --tls-cert | --tls-ca)
|
|
@@ -662,7 +662,7 @@ function _hs_cluster() {
|
|
|
662
662
|
-d --delay-start --capture -o --output -e --errors -f --failures
|
|
663
663
|
-c --cores -m --memory -C --client-cores -M --client-memory --monitor
|
|
664
664
|
-T --timeout -W --task-timeout -R --ratelimit -S --signalwait
|
|
665
|
-
-A --autoscaling -F --factor -P --period -I --init-size -X --min-size -Y --max-size"
|
|
665
|
+
-A --autoscaling -F --factor -P --period -I --init-size -X --min-size -Y --max-size --zone"
|
|
666
666
|
|
|
667
667
|
if [ "${COMP_CWORD}" -eq 2 ]
|
|
668
668
|
then
|