hypershell 2.9.0a3__tar.gz → 2.9.0a4__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.
Files changed (223) hide show
  1. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/PKG-INFO +1 -1
  2. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/client_desc.rst +2 -1
  3. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/client_help.rst +15 -1
  4. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/client_usage.rst +1 -1
  5. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/cluster_help.rst +7 -0
  6. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/cluster_usage.rst +1 -1
  7. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_param_ref.rst +15 -1
  8. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/server_desc.rst +5 -4
  9. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/server_help.rst +2 -1
  10. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/submit_desc.rst +2 -1
  11. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/submit_help.rst +11 -0
  12. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/submit_usage.rst +1 -1
  13. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_info_help.rst +1 -1
  14. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_submit_desc.rst +1 -1
  15. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_submit_help.rst +6 -0
  16. hypershell-2.9.0a4/docs/_include/task_submit_usage.rst +1 -0
  17. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_wait_help.rst +1 -1
  18. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/alternatives.rst +4 -4
  19. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/security.rst +10 -8
  20. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/pyproject.toml +1 -1
  21. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/share/bash_completion.d/hs +4 -4
  22. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/share/man/man1/hs.1 +65 -15
  23. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/share/man/man1/hsx.1 +65 -15
  24. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/share/man/man1/hyper-shell.1 +65 -15
  25. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/share/zsh/site-functions/_hs +5 -1
  26. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/client.py +105 -48
  27. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/cluster/__init__.py +23 -7
  28. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/cluster/local.py +8 -2
  29. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/cluster/remote.py +15 -1
  30. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/cluster/ssh.py +9 -1
  31. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/config.py +1 -0
  32. hypershell-2.9.0a4/src/hypershell/core/dispatch.py +480 -0
  33. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/logging.py +1 -1
  34. hypershell-2.9.0a4/src/hypershell/core/queue.py +1131 -0
  35. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/tls.py +9 -6
  36. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/data/model.py +211 -44
  37. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/server.py +129 -37
  38. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/submit.py +42 -13
  39. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/task.py +67 -16
  40. hypershell-2.9.0a4/tests/bench/bench_queue.py +593 -0
  41. hypershell-2.9.0a4/tests/cluster/build_archive.sh +82 -0
  42. hypershell-2.9.0a4/tests/cluster/compare.py +282 -0
  43. hypershell-2.9.0a4/tests/cluster/drive.sh +317 -0
  44. hypershell-2.9.0a4/tests/cluster/smoke.sh +117 -0
  45. hypershell-2.9.0a4/tests/test_client_request.py +161 -0
  46. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_cluster.py +1 -0
  47. hypershell-2.9.0a4/tests/test_cluster_compare.py +147 -0
  48. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_contended_recovery.py +128 -8
  49. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_contended_write.py +36 -1
  50. hypershell-2.9.0a4/tests/test_dispatch.py +319 -0
  51. hypershell-2.9.0a4/tests/test_dispatch_staged.py +276 -0
  52. hypershell-2.9.0a4/tests/test_dispatch_version.py +204 -0
  53. hypershell-2.9.0a4/tests/test_dispatch_workload.py +258 -0
  54. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_groups.py +34 -11
  55. hypershell-2.9.0a4/tests/test_queue.py +574 -0
  56. hypershell-2.9.0a4/tests/test_queue_gc.py +915 -0
  57. hypershell-2.9.0a4/tests/test_queue_limits.py +234 -0
  58. hypershell-2.9.0a4/tests/test_queue_start.py +228 -0
  59. hypershell-2.9.0a4/tests/test_queue_workload.py +126 -0
  60. hypershell-2.9.0a4/tests/test_server_fsm.py +302 -0
  61. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_submit.py +1 -0
  62. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_writeback.py +3 -1
  63. hypershell-2.9.0a4/tests/test_zone_dispatch.py +254 -0
  64. hypershell-2.9.0a4/tests/test_zone_display.py +93 -0
  65. hypershell-2.9.0a4/tests/test_zone_model.py +279 -0
  66. hypershell-2.9.0a4/tests/test_zone_postgres.py +133 -0
  67. hypershell-2.9.0a4/tests/test_zone_workload.py +112 -0
  68. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/uv.lock +1 -1
  69. hypershell-2.9.0a3/docs/_include/task_submit_usage.rst +0 -1
  70. hypershell-2.9.0a3/src/hypershell/core/queue.py +0 -454
  71. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/.gitignore +0 -0
  72. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/CODE_OF_CONDUCT.md +0 -0
  73. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/LICENSE +0 -0
  74. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/README.rst +0 -0
  75. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/Makefile +0 -0
  76. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/citation.rst +0 -0
  77. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/cluster_desc.rst +0 -0
  78. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_desc.rst +0 -0
  79. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_edit_desc.rst +0 -0
  80. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_edit_help.rst +0 -0
  81. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_edit_usage.rst +0 -0
  82. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_get_desc.rst +0 -0
  83. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_get_help.rst +0 -0
  84. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_get_usage.rst +0 -0
  85. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_help.rst +0 -0
  86. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_intro.rst +0 -0
  87. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_intro_alt.rst +0 -0
  88. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_pythonpath.rst +0 -0
  89. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_set_desc.rst +0 -0
  90. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_set_help.rst +0 -0
  91. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_set_usage.rst +0 -0
  92. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_site_vars.rst +0 -0
  93. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_task_env.rst +0 -0
  94. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_task_env_alt.rst +0 -0
  95. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_usage.rst +0 -0
  96. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_which_desc.rst +0 -0
  97. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_which_help.rst +0 -0
  98. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/config_which_usage.rst +0 -0
  99. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/database.rst +0 -0
  100. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/database_alt.rst +0 -0
  101. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/desc.rst +0 -0
  102. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/exit_status.rst +0 -0
  103. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/initdb_desc.rst +0 -0
  104. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/initdb_help.rst +0 -0
  105. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/initdb_usage.rst +0 -0
  106. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/license.rst +0 -0
  107. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/security_alt.rst +0 -0
  108. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/server_usage.rst +0 -0
  109. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/signals.rst +0 -0
  110. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_groups_alt.rst +0 -0
  111. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_info_desc.rst +0 -0
  112. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_info_usage.rst +0 -0
  113. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_run_desc.rst +0 -0
  114. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_run_help.rst +0 -0
  115. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_run_usage.rst +0 -0
  116. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_search_desc.rst +0 -0
  117. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_search_help.rst +0 -0
  118. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_search_usage.rst +0 -0
  119. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_update_desc.rst +0 -0
  120. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_update_help.rst +0 -0
  121. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_update_usage.rst +0 -0
  122. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_wait_desc.rst +0 -0
  123. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/task_wait_usage.rst +0 -0
  124. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/templates.rst +0 -0
  125. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/templates_alt.rst +0 -0
  126. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_include/tls_cli_options.rst +0 -0
  127. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_static/custom.css +0 -0
  128. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_static/logo-dark-mode.png +0 -0
  129. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/_static/logo-light-mode.png +0 -0
  130. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/api/client.rst +0 -0
  131. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/api/cluster.rst +0 -0
  132. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/api/data.rst +0 -0
  133. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/api/index.rst +0 -0
  134. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/api/server.rst +0 -0
  135. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/api/submit.rst +0 -0
  136. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/client.rst +0 -0
  137. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/cluster.rst +0 -0
  138. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/config.rst +0 -0
  139. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/config_edit.rst +0 -0
  140. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/config_get.rst +0 -0
  141. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/config_set.rst +0 -0
  142. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/config_which.rst +0 -0
  143. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/index.rst +0 -0
  144. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/initdb.rst +0 -0
  145. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/server.rst +0 -0
  146. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/submit.rst +0 -0
  147. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/task_info.rst +0 -0
  148. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/task_run.rst +0 -0
  149. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/task_search.rst +0 -0
  150. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/task_submit.rst +0 -0
  151. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/task_update.rst +0 -0
  152. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/cli/task_wait.rst +0 -0
  153. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/conf.py +0 -0
  154. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/config.rst +0 -0
  155. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/database.rst +0 -0
  156. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/getting_started.rst +0 -0
  157. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/index.rst +0 -0
  158. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/install.rst +0 -0
  159. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/logging.rst +0 -0
  160. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/manual.rst +0 -0
  161. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/docs/templates.rst +0 -0
  162. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/share/bash_completion.d/hsx +0 -0
  163. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/__init__.py +0 -0
  164. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/config.py +0 -0
  165. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/__init__.py +0 -0
  166. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/exceptions.py +0 -0
  167. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/fsm.py +0 -0
  168. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/heartbeat.py +0 -0
  169. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/platform.py +0 -0
  170. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/pretty_print.py +0 -0
  171. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/remote.py +0 -0
  172. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/resource.py +0 -0
  173. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/signal.py +0 -0
  174. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/sys.py +0 -0
  175. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/tag.py +0 -0
  176. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/template.py +0 -0
  177. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/thread.py +0 -0
  178. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/types.py +0 -0
  179. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/core/uuid.py +0 -0
  180. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/data/__init__.py +0 -0
  181. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/data/core.py +0 -0
  182. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/data/timescale.py +0 -0
  183. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/src/hypershell/data/upgrade.py +0 -0
  184. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/__init__.py +0 -0
  185. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/conftest.py +0 -0
  186. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/fixtures/README.md +0 -0
  187. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/fixtures/hypershell-2.8.3.db +0 -0
  188. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/fixtures/make-2.8.3-db.sh +0 -0
  189. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/fixtures/make-legacy-postgres.sh +0 -0
  190. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_autoscale.py +0 -0
  191. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_cancel.py +0 -0
  192. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_card_info.py +0 -0
  193. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_card_integration.py +0 -0
  194. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_card_render.py +0 -0
  195. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_client.py +0 -0
  196. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_completions.py +0 -0
  197. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_data/__init__.py +0 -0
  198. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_data/test_core.py +0 -0
  199. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_data/test_model.py +0 -0
  200. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_data/test_upgrade.py +0 -0
  201. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_factory_fsm.py +0 -0
  202. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_group_order.py +0 -0
  203. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_initdb.py +0 -0
  204. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_list.py +0 -0
  205. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_logging.py +0 -0
  206. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_main.py +0 -0
  207. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_meta_status.py +0 -0
  208. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_queue_address_family.py +0 -0
  209. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_queue_tls.py +0 -0
  210. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_restart.py +0 -0
  211. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_retry_gate.py +0 -0
  212. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_server.py +0 -0
  213. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_signal.py +0 -0
  214. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_source.py +0 -0
  215. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_status_label.py +0 -0
  216. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_submit_json.py +0 -0
  217. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_template.py +0 -0
  218. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_timescale.py +0 -0
  219. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_update.py +0 -0
  220. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_upgrade_cli.py +0 -0
  221. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_upgrade_postgres.py +0 -0
  222. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/tests/test_writeback_postgres.py +0 -0
  223. {hypershell-2.9.0a3 → hypershell-2.9.0a4}/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.0a3
3
+ Version: 2.9.0a4
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 pulls bundles of tasks off the shared queue.
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: 1).
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
 
@@ -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 search``.
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 offers
4
- them up on a distributed queue to clients. It also has a receiver that collects the results
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 and clients pull them in these bundles. However, by default the bundle size
13
- is one, meaning that at small scales there is greater concurrency.
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 ``task search``).
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.
@@ -3,4 +3,4 @@ Submit individual task to the database.
3
3
  A database must be configured. The task will not run until scheduled
4
4
  by the server process. The task UUID will be printed to standard out.
5
5
 
6
- See ``task info`` command.
6
+ See ``hs info`` command.
@@ -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...``
@@ -13,7 +13,7 @@ Options
13
13
  ``-i``, ``--info``
14
14
  Print task info after completion.
15
15
 
16
- See ``task info`` command.
16
+ See ``hs info`` command.
17
17
 
18
18
  ``-f``, ``--format`` *FORMAT*
19
19
  Format task info ([normal], card, json, yaml).
@@ -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 ``task``/``submit``
183
- management CLI (``search``/``info``/``update``/``wait``) — and its clients elastically join
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 ``task``/``submit`` CLI. HyperQueue keeps state in the running server's
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
- ``task search``/``wait`` CLI over a database of record.
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` and
37
- :class:`multiprocessing.JoinableQueue` infrastructure. The runtime decomposes into three
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
- ``JoinableQueue`` instances to clients via RPC over TCP:
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 task info --stdout`` or similar. Without transport encryption, the
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`` is byte-for-byte equivalent to a stock ``BaseManager`` with
132
- the default ``pickle`` serializer, so cleartext deployments remain supported for
133
- constrained environments.
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
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hypershell"
3
- version = "2.9.0a3"
3
+ version = "2.9.0a4"
4
4
  description = "A cross-platform, high-throughput computing utility for processing shell commands over a distributed, asynchronous queue."
5
5
  readme = "README.rst"
6
6
  license = "Apache-2.0"
@@ -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
@@ -28,7 +28,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
28
28
  .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
29
  .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30
30
  ..
31
- .TH "HS" "1" "Nov 04, 2026" "2.9.0a3" "hypershell"
31
+ .TH "HS" "1" "Nov 05, 2026" "2.9.0a4" "hypershell"
32
32
  .SH NAME
33
33
  hs \- Process shell commands over a distributed, asynchronous queue
34
34
  .SH SYNOPSIS
@@ -93,7 +93,7 @@ Stand up the \fBserver\fP on its own and scale \fBclients\fP as desired, and \fB
93
93
  \fB[\-H ADDR]\fP \fB[\-p PORT]\fP \fB[\-r NUM [\-\-eager]]\fP \fB[\-f PATH]\fP \fB[\-\-capture | [\-o PATH] [\-e PATH]]\fP
94
94
  \fB[\-\-ssh [HOST... | \-\-ssh\-group NAME] [\-\-env] | \-\-mpi | \-\-launcher=ARGS...]\fP
95
95
  \fB[\-\-no\-db [\-\-no\-confirm] | \-\-initdb]\fP \fB[\-d SEC]\fP \fB[\-T SEC]\fP \fB[\-W SEC]\fP \fB[\-S SEC]\fP \fB[\-R NUM]\fP
96
- \fB[\-c NUM]\fP \fB[\-m MEM]\fP \fB[\-C NUM]\fP \fB[\-M MEM]\fP \fB[\-\-monitor]\fP
96
+ \fB[\-c NUM]\fP \fB[\-m MEM]\fP \fB[\-C NUM]\fP \fB[\-M MEM]\fP \fB[\-\-monitor]\fP \fB[\-\-zone NAME]\fP
97
97
  \fB[\-\-autoscaling [MODE] [\-P SEC] [\-F VALUE] [\-I NUM] [\-X NUM] [\-Y NUM]]\fP
98
98
  \fB[\-\-no\-tls | [\-\-tls\-ca PATH] [\-\-tls\-cert PATH] [\-\-tls\-key PATH]]\fP
99
99
  .UNINDENT
@@ -250,6 +250,13 @@ By default, a scheduler thread selects tasks from a database that were previousl
250
250
  With \fB\-\-no\-db\fP enabled, there is no scheduler and instead the \fIsubmit\fP thread publishes
251
251
  bundles directly to the queue.
252
252
  .TP
253
+ .B \fB\-\-zone\fP \fINAME\fP
254
+ Zone of the submitted tasks and of every client the cluster launches (default: none).
255
+ .sp
256
+ The tasks read from \fIFILE\fP (or \fB\-\-from\-json\fP) are placed in this zone, and each client is
257
+ launched with the same \fB\-\-zone\fP, so it runs them. Zones are recorded in the database, so
258
+ \fB\-\-zone\fP cannot be used with \fB\-\-no\-db\fP\&.
259
+ .TP
253
260
  .B \fB\-\-initdb\fP
254
261
  Auto\-initialize database.
255
262
  .sp
@@ -557,8 +564,8 @@ See the \fIsecurity\fP section for peer verification modes.
557
564
  .sp
558
565
  Launch server, schedule directly or asynchronously from database.
559
566
  .sp
560
- The server includes a scheduler component that pulls tasks from the database and offers
561
- them up on a distributed queue to clients. It also has a receiver that collects the results
567
+ The server includes a scheduler component that pulls tasks from the database and stages them
568
+ for clients, which request bundles of them when they are ready for work. It also has a receiver that collects the results
562
569
  of finished tasks. Optionally, the server can submit tasks (\fIFILE\fP). When submitting tasks,
563
570
  the \fB\-w\fP/\fB\-\-bundlewait\fP and \fB\-b\fP/\fB\-\-bundlesize\fP options are the same as for the
564
571
  \fIsubmit\fP workflow.
@@ -566,8 +573,9 @@ the \fB\-w\fP/\fB\-\-bundlewait\fP and \fB\-b\fP/\fB\-\-bundlesize\fP options ar
566
573
  With \fB\-\-max\-retries\fP greater than zero, the scheduler will check for a non\-zero exit status
567
574
  for tasks and re\-submit them if their previous number of attempts is less.
568
575
  .sp
569
- Tasks are bundled and clients pull them in these bundles. However, by default the bundle size
570
- is one, meaning that at small scales there is greater concurrency.
576
+ Tasks are bundled for each client at the size it asks for, or at the server\(aqs \fB\-b\fP/\fB\-\-bundlesize\fP
577
+ when it asks for none. By default the bundle size is one, meaning that at small scales there is
578
+ greater concurrency.
571
579
  .SS Arguments
572
580
  .INDENT 0.0
573
581
  .TP
@@ -602,7 +610,8 @@ Size of task bundle (default: 1).
602
610
  The default value allows for greater concurrency and responsiveness on small scales. This is
603
611
  used by the \fIsubmit\fP thread to accumulate bundles for either database commits and/or publishing
604
612
  to the queue. If a database is in use, the scheduler thread selects tasks from the database in
605
- batches of this size.
613
+ batches of this size. It is also the size of the bundle given to a client that advertises no
614
+ size of its own (a client\(aqs \fB\-b\fP is its advertised size).
606
615
  .sp
607
616
  Using larger bundles is a good idea for large distributed workflows; specifically, it is best
608
617
  to coordinate bundle size with the number of executors in use by each client.
@@ -767,13 +776,14 @@ See the \fIsecurity\fP section for peer verification modes.
767
776
  \fB[\-N NUM]\fP \fB[\-t TEMPLATE]\fP \fB[\-b SIZE]\fP \fB[\-w SEC]\fP \fB[\-H ADDR]\fP \fB[\-p PORT]\fP
768
777
  \fB[\-k KEY]\fP \fB[\-\-capture | [\-o PATH] [\-e PATH]]\fP \fB[\-\-no\-confirm]\fP
769
778
  \fB[\-d SEC]\fP \fB[\-T SEC]\fP \fB[\-W SEC]\fP \fB[\-S SEC]\fP \fB[\-R NUM]\fP
770
- \fB[\-C NUM]\fP \fB[\-M MEM]\fP \fB[\-\-monitor]\fP
779
+ \fB[\-C NUM]\fP \fB[\-M MEM]\fP \fB[\-\-monitor]\fP \fB[\-\-zone NAME]\fP
771
780
  \fB[\-\-no\-tls | [\-\-tls\-ca PATH] [\-\-tls\-cert PATH] [\-\-tls\-key PATH]]\fP
772
781
  .UNINDENT
773
782
  .sp
774
783
  Launch client directly, run tasks in parallel.
775
784
  .sp
776
- The client connects to the server and pulls bundles of tasks off the shared queue.
785
+ The client connects to the server and, whenever it is ready for work, requests a bundle of tasks
786
+ of its own size (\fB\-b\fP/\fB\-\-bundlesize\fP; the server\(aqs size when not given).
777
787
  These tasks are run locally by some number of a parallel task executors.
778
788
  .sp
779
789
  The environment for tasks are the same as for the client. Standard output and error
@@ -798,7 +808,14 @@ arguments (e.g., file paths) to be transformed into some common form; such as
798
808
  See section on \fItemplates\fP\&.
799
809
  .TP
800
810
  .B \fB\-b\fP, \fB\-\-bundlesize\fP \fISIZE\fP
801
- Size of task bundle (default: 1).
811
+ Size of task bundle to request from the server and to return results in (default: the
812
+ server\(aqs).
813
+ .sp
814
+ When given (on the command line, by \fBHYPERSHELL_SUBMIT_BUNDLESIZE\fP, or in a configuration
815
+ file as \fBsubmit.bundlesize\fP), the client advertises this size and the server replies with
816
+ up to this many tasks, never more than its cap (\fBserver.bundlemax\fP). When not given, the
817
+ client advertises no size and the server uses its own \fB\-\-bundlesize\fP; finished tasks are then
818
+ returned in bundles of the built\-in default (1).
802
819
  .sp
803
820
  Using larger bundles is a good idea for large distributed workflows; specifically, it is best
804
821
  to coordinate bundle size with the number of executors in use by each client.
@@ -814,6 +831,13 @@ it has reached the preferred bundle size.
814
831
  .sp
815
832
  See also \fB\-\-bundlesize\fP\&.
816
833
  .TP
834
+ .B \fB\-\-zone\fP \fINAME\fP
835
+ Run only tasks of this zone (default: none, tasks without a zone).
836
+ .sp
837
+ The client names its zone when it requests work, and the server replies with tasks of that
838
+ zone only. A client given no \fB\-\-zone\fP (or \fB\-\-zone default\fP) runs only tasks submitted
839
+ without one. See \fB\-\-zone\fP on \fIsubmit\fP\&.
840
+ .TP
817
841
  .B \fB\-H\fP, \fB\-\-host\fP \fIADDR\fP
818
842
  Hostname or IP address to connect with server (default: localhost).
819
843
  .TP
@@ -954,7 +978,7 @@ See the \fIsecurity\fP section for peer verification modes.
954
978
  .B \fBhs\fP \fBsubmit\fP \fB[\-h]\fP \fB[ARGS... | \-f FILE | \-\-from\-json SPEC]\fP
955
979
  \fB[\-q [\-H ADDR] [\-p NUM] [\-k KEY] | \-\-initdb]\fP
956
980
  \fB[\-b NUM]\fP \fB[\-w SEC]\fP \fB[\-c NUM]\fP \fB[\-m MEM]\fP \fB[\-W SEC]\fP \fB[\-g NUM]\fP
957
- \fB[\-\-repeat | \-\-update]\fP \fB[\-\-template CMD]\fP \fB[\-t TAG...]\fP
981
+ \fB[\-\-repeat | \-\-update]\fP \fB[\-\-template CMD]\fP \fB[\-t TAG...]\fP \fB[\-\-zone NAME]\fP
958
982
  \fB[\-\-no\-tls | [\-\-tls\-ca PATH] [\-\-tls\-cert PATH] [\-\-tls\-key PATH]]\fP
959
983
  .UNINDENT
960
984
  .sp
@@ -965,7 +989,8 @@ If a single positional argument refers to a non\-executable file path,
965
989
  tasks will be read from the file, one per line (use \fB\-f\fP/\fB\-\-task\-file\fP to be explicit).
966
990
  .sp
967
991
  Tasks are accumulated and published in bundles to the database by default.
968
- With \fB\-q\fP/\fB\-\-queue\fP, tasks are submitted directly to a live queue, bypassing the database.
992
+ With \fB\-q\fP/\fB\-\-queue\fP, tasks are submitted directly to a live queue, bypassing the database;
993
+ the server must be running without a database (\fB\-\-no\-db\fP).
969
994
  The \fB\-b\fP/\fB\-\-bundlesize\fP and \fB\-w\fP/\fB\-\-bundlewait\fP options control the
970
995
  size of these bundles and how long to wait before flushing tasks regardless of
971
996
  how many have accumulated.
@@ -1045,6 +1070,9 @@ When enabled, tasks are sent directly to a running server\(aqs queue for immedia
1045
1070
  scheduling. This bypasses the database entirely, which is useful for transient
1046
1071
  workflows or when a database is not configured.
1047
1072
  .sp
1073
+ The server must be running without a database (\fB\-\-no\-db\fP). A server with a database
1074
+ schedules only from it, so it refuses the submission and the command exits with an error.
1075
+ .sp
1048
1076
  Requires \fB\-H\fP, \fB\-p\fP, and \fB\-k\fP options to specify the server connection.
1049
1077
  .TP
1050
1078
  .B \fB\-H\fP, \fB\-\-host\fP \fIADDR\fP
@@ -1119,6 +1147,14 @@ workflow management without requiring explicit DAG\-based definitions.
1119
1147
  All tasks default to group 0 for backwards compatibility. Users can organize tasks into
1120
1148
  multiple groups (e.g., 0, 1, 2, ...) where lower\-numbered groups execute first.
1121
1149
  .TP
1150
+ .B \fB\-\-zone\fP \fINAME\fP
1151
+ Zone of the submitted tasks (default: none, the reserved default zone).
1152
+ .sp
1153
+ Only a client launched with the same \fB\-\-zone\fP runs these tasks; a client given no
1154
+ \fB\-\-zone\fP runs only tasks without one. Zone names are arbitrary text (\fBdefault\fP names the
1155
+ default zone). Zones are recorded in the database, so \fB\-\-zone\fP cannot be used with
1156
+ \fB\-\-queue\fP\&. Zone is placement only: task groups still run in order across all zones.
1157
+ .TP
1122
1158
  .B \fB\-\-initdb\fP
1123
1159
  Auto\-initialize database.
1124
1160
  .sp
@@ -1229,7 +1265,7 @@ Unique task UUID.
1229
1265
  .TP
1230
1266
  .B \fB\-f\fP, \fB\-\-format\fP \fIFORMAT\fP
1231
1267
  Format task info ([normal], card, json, yaml). The \fBcard\fP format renders the task as a
1232
- richly\-formatted, bordered panel with a color\-coded status badge (see \fBtask search\fP).
1268
+ richly\-formatted, bordered panel with a color\-coded status badge (see \fBhs list\fP).
1233
1269
  .TP
1234
1270
  .B \fB\-\-json\fP
1235
1271
  Format metadata output as JSON.
@@ -1287,7 +1323,7 @@ Time in seconds to wait between polling (default: 5).
1287
1323
  .B \fB\-i\fP, \fB\-\-info\fP
1288
1324
  Print task info after completion.
1289
1325
  .sp
1290
- See \fBtask info\fP command.
1326
+ See \fBhs info\fP command.
1291
1327
  .TP
1292
1328
  .B \fB\-f\fP, \fB\-\-format\fP \fIFORMAT\fP
1293
1329
  Format task info ([normal], card, json, yaml).
@@ -2315,8 +2351,17 @@ batches of this size.
2315
2351
  Using larger bundles is a good idea for large distributed workflows; specifically, it is best
2316
2352
  to coordinate bundle size with the number of executors in use by each client.
2317
2353
  .sp
2354
+ It is also the size of the bundle given to a client that advertises no size of its own.
2355
+ .sp
2318
2356
  See also \fB\-b\fP/\fB\-\-bundlesize\fP command\-line option.
2319
2357
  .TP
2358
+ .B \fB\&.bundlemax\fP
2359
+ Most tasks the server hands a client in one reply (default: \fI1000\fP).
2360
+ .sp
2361
+ A client advertises its own bundle size (its \fB\-b\fP); the server never replies with more
2362
+ than this many tasks, whatever a client asks for. The effective cap is never smaller than
2363
+ the server\(aqs own \fB\&.bundlesize\fP\&. There is no command\-line option.
2364
+ .TP
2320
2365
  .B \fB\&.attempts\fP
2321
2366
  Attempts for auto\-retry on failed tasks (default: \fI1\fP).
2322
2367
  .sp
@@ -2488,6 +2533,11 @@ The default value allows for greater concurrency and responsiveness on small sca
2488
2533
  Using larger bundles is a good idea for large distributed workflows; specifically, it is best
2489
2534
  to coordinate bundle size with the number of executors in use by each client.
2490
2535
  .sp
2536
+ The \fIclient\fP reads its \fB\-b\fP/\fB\-\-bundlesize\fP default from this key. When it is set (here
2537
+ or by \fBHYPERSHELL_SUBMIT_BUNDLESIZE\fP), a client advertises it as the size of bundle it
2538
+ requests; when it is left at the built\-in default, a client advertises no size and the
2539
+ server uses its own.
2540
+ .sp
2491
2541
  See also \fB\-b\fP/\fB\-\-bundlesize\fP command\-line option.
2492
2542
  .TP
2493
2543
  .B \fB\&.bundlewait\fP
@@ -2634,7 +2684,7 @@ Rich text display and output parameters.
2634
2684
  .TP
2635
2685
  .B \fB\&.theme\fP
2636
2686
  Color scheme to use by default in output (default: \fImonokai\fP), such as with
2637
- \fBhs info\fP and \fBhs search\fP\&.
2687
+ \fBhs info\fP and \fBhs list\fP\&.
2638
2688
  .sp
2639
2689
  This option is passed to the \X'tty: link https://rich.readthedocs.io/en/latest/'\fI\%rich\fP\X'tty: link' library.
2640
2690
  .UNINDENT