hypershell 2.9.0a1__tar.gz → 2.9.0a3__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 (221) hide show
  1. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/PKG-INFO +2 -2
  2. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/client_help.rst +2 -0
  3. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_param_ref.rst +12 -2
  4. hypershell-2.9.0a3/docs/_include/database.rst +412 -0
  5. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/database_alt.rst +16 -0
  6. hypershell-2.9.0a3/docs/_include/initdb_desc.rst +9 -0
  7. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_groups_alt.rst +9 -0
  8. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_info_help.rst +2 -1
  9. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_search_help.rst +13 -2
  10. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_search_usage.rst +1 -1
  11. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_wait_help.rst +1 -1
  12. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/alternatives.rst +1 -1
  13. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/api/data.rst +8 -0
  14. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/index.rst +0 -1
  15. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/conf.py +28 -1
  16. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/index.rst +0 -16
  17. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/install.rst +2 -0
  18. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/logging.rst +17 -0
  19. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/pyproject.toml +2 -1
  20. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/share/bash_completion.d/hs +8 -4
  21. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/share/man/man1/hs.1 +60 -10
  22. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/share/man/man1/hsx.1 +60 -10
  23. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/share/man/man1/hyper-shell.1 +60 -10
  24. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/share/zsh/site-functions/_hs +6 -5
  25. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/client.py +1 -0
  26. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/cluster/local.py +1 -0
  27. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/cluster/remote.py +5 -2
  28. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/cluster/ssh.py +2 -1
  29. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/exceptions.py +6 -1
  30. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/logging.py +325 -51
  31. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/queue.py +22 -11
  32. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/data/__init__.py +51 -15
  33. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/data/core.py +8 -7
  34. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/data/model.py +318 -53
  35. hypershell-2.9.0a3/src/hypershell/data/timescale.py +636 -0
  36. hypershell-2.9.0a3/src/hypershell/data/upgrade.py +432 -0
  37. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/server.py +148 -16
  38. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/task.py +253 -36
  39. hypershell-2.9.0a3/tests/__init__.py +172 -0
  40. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/conftest.py +36 -2
  41. hypershell-2.9.0a3/tests/fixtures/README.md +52 -0
  42. hypershell-2.9.0a3/tests/fixtures/hypershell-2.8.3.db +0 -0
  43. hypershell-2.9.0a3/tests/fixtures/make-2.8.3-db.sh +89 -0
  44. hypershell-2.9.0a3/tests/fixtures/make-legacy-postgres.sh +139 -0
  45. hypershell-2.9.0a3/tests/test_card_info.py +70 -0
  46. hypershell-2.9.0a3/tests/test_card_integration.py +74 -0
  47. hypershell-2.9.0a3/tests/test_card_render.py +216 -0
  48. hypershell-2.9.0a3/tests/test_completions.py +89 -0
  49. hypershell-2.9.0a3/tests/test_contended_recovery.py +485 -0
  50. hypershell-2.9.0a3/tests/test_contended_write.py +303 -0
  51. hypershell-2.9.0a3/tests/test_data/test_upgrade.py +348 -0
  52. hypershell-2.9.0a3/tests/test_group_order.py +470 -0
  53. hypershell-2.9.0a3/tests/test_initdb.py +106 -0
  54. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_list.py +44 -0
  55. hypershell-2.9.0a3/tests/test_logging.py +520 -0
  56. hypershell-2.9.0a3/tests/test_queue_address_family.py +461 -0
  57. hypershell-2.9.0a3/tests/test_retry_gate.py +301 -0
  58. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_source.py +12 -11
  59. hypershell-2.9.0a3/tests/test_status_label.py +75 -0
  60. hypershell-2.9.0a3/tests/test_timescale.py +1086 -0
  61. hypershell-2.9.0a3/tests/test_upgrade_cli.py +425 -0
  62. hypershell-2.9.0a3/tests/test_upgrade_postgres.py +479 -0
  63. hypershell-2.9.0a3/tests/test_writeback.py +506 -0
  64. hypershell-2.9.0a3/tests/test_writeback_postgres.py +240 -0
  65. hypershell-2.9.0a3/tests/test_writeback_statement.py +290 -0
  66. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/uv.lock +107 -64
  67. hypershell-2.9.0a1/docs/_include/database.rst +0 -109
  68. hypershell-2.9.0a1/docs/_include/initdb_desc.rst +0 -8
  69. hypershell-2.9.0a1/docs/blog/20230329_2_2_0_release.rst +0 -85
  70. hypershell-2.9.0a1/docs/blog/20230413_2_3_0_release.rst +0 -83
  71. hypershell-2.9.0a1/docs/blog/20230602_2_4_0_release.rst +0 -284
  72. hypershell-2.9.0a1/docs/blog/20240518_2_5_0_release.rst +0 -285
  73. hypershell-2.9.0a1/docs/blog/20240706_2_5_2_release.rst +0 -80
  74. hypershell-2.9.0a1/docs/blog/20241115_2_6_0_release.rst +0 -162
  75. hypershell-2.9.0a1/docs/blog/20241115_announce_logo.rst +0 -15
  76. hypershell-2.9.0a1/docs/blog/20241231_2_6_1_release.rst +0 -58
  77. hypershell-2.9.0a1/docs/blog/20250215_2_6_5_release.rst +0 -54
  78. hypershell-2.9.0a1/docs/blog/20250405_2_6_6_release.rst +0 -58
  79. hypershell-2.9.0a1/docs/blog/20250504_2_7_0_release.rst +0 -228
  80. hypershell-2.9.0a1/docs/blog/20260705_2_8_0_release.rst +0 -855
  81. hypershell-2.9.0a1/docs/blog/index.rst +0 -188
  82. hypershell-2.9.0a1/docs/roadmap.rst +0 -53
  83. hypershell-2.9.0a1/docs/tutorial/advanced.rst +0 -6
  84. hypershell-2.9.0a1/docs/tutorial/basic.rst +0 -8
  85. hypershell-2.9.0a1/docs/tutorial/distributed.rst +0 -6
  86. hypershell-2.9.0a1/docs/tutorial/hybrid.rst +0 -6
  87. hypershell-2.9.0a1/tests/__init__.py +0 -84
  88. hypershell-2.9.0a1/tests/test_initdb.py +0 -82
  89. hypershell-2.9.0a1/tests/test_logging.py +0 -119
  90. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/.gitignore +0 -0
  91. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/CODE_OF_CONDUCT.md +0 -0
  92. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/LICENSE +0 -0
  93. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/README.rst +0 -0
  94. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/Makefile +0 -0
  95. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/citation.rst +0 -0
  96. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/client_desc.rst +0 -0
  97. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/client_usage.rst +0 -0
  98. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/cluster_desc.rst +0 -0
  99. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/cluster_help.rst +0 -0
  100. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/cluster_usage.rst +0 -0
  101. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_desc.rst +0 -0
  102. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_edit_desc.rst +0 -0
  103. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_edit_help.rst +0 -0
  104. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_edit_usage.rst +0 -0
  105. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_get_desc.rst +0 -0
  106. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_get_help.rst +0 -0
  107. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_get_usage.rst +0 -0
  108. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_help.rst +0 -0
  109. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_intro.rst +0 -0
  110. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_intro_alt.rst +0 -0
  111. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_pythonpath.rst +0 -0
  112. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_set_desc.rst +0 -0
  113. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_set_help.rst +0 -0
  114. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_set_usage.rst +0 -0
  115. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_site_vars.rst +0 -0
  116. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_task_env.rst +0 -0
  117. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_task_env_alt.rst +0 -0
  118. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_usage.rst +0 -0
  119. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_which_desc.rst +0 -0
  120. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_which_help.rst +0 -0
  121. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/config_which_usage.rst +0 -0
  122. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/desc.rst +0 -0
  123. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/exit_status.rst +0 -0
  124. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/initdb_help.rst +0 -0
  125. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/initdb_usage.rst +0 -0
  126. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/license.rst +0 -0
  127. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/security_alt.rst +0 -0
  128. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/server_desc.rst +0 -0
  129. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/server_help.rst +0 -0
  130. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/server_usage.rst +0 -0
  131. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/signals.rst +0 -0
  132. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/submit_desc.rst +0 -0
  133. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/submit_help.rst +0 -0
  134. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/submit_usage.rst +0 -0
  135. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_info_desc.rst +0 -0
  136. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_info_usage.rst +0 -0
  137. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_run_desc.rst +0 -0
  138. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_run_help.rst +0 -0
  139. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_run_usage.rst +0 -0
  140. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_search_desc.rst +0 -0
  141. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_submit_desc.rst +0 -0
  142. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_submit_help.rst +0 -0
  143. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_submit_usage.rst +0 -0
  144. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_update_desc.rst +0 -0
  145. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_update_help.rst +0 -0
  146. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_update_usage.rst +0 -0
  147. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_wait_desc.rst +0 -0
  148. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/task_wait_usage.rst +0 -0
  149. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/templates.rst +0 -0
  150. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/templates_alt.rst +0 -0
  151. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_include/tls_cli_options.rst +0 -0
  152. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_static/custom.css +0 -0
  153. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_static/logo-dark-mode.png +0 -0
  154. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/_static/logo-light-mode.png +0 -0
  155. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/api/client.rst +0 -0
  156. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/api/cluster.rst +0 -0
  157. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/api/index.rst +0 -0
  158. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/api/server.rst +0 -0
  159. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/api/submit.rst +0 -0
  160. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/client.rst +0 -0
  161. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/cluster.rst +0 -0
  162. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/config.rst +0 -0
  163. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/config_edit.rst +0 -0
  164. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/config_get.rst +0 -0
  165. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/config_set.rst +0 -0
  166. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/config_which.rst +0 -0
  167. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/initdb.rst +0 -0
  168. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/server.rst +0 -0
  169. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/submit.rst +0 -0
  170. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/task_info.rst +0 -0
  171. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/task_run.rst +0 -0
  172. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/task_search.rst +0 -0
  173. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/task_submit.rst +0 -0
  174. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/task_update.rst +0 -0
  175. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/cli/task_wait.rst +0 -0
  176. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/config.rst +0 -0
  177. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/database.rst +0 -0
  178. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/getting_started.rst +0 -0
  179. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/manual.rst +0 -0
  180. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/security.rst +0 -0
  181. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/docs/templates.rst +0 -0
  182. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/share/bash_completion.d/hsx +0 -0
  183. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/__init__.py +0 -0
  184. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/cluster/__init__.py +0 -0
  185. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/config.py +0 -0
  186. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/__init__.py +0 -0
  187. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/config.py +0 -0
  188. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/fsm.py +0 -0
  189. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/heartbeat.py +0 -0
  190. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/platform.py +0 -0
  191. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/pretty_print.py +0 -0
  192. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/remote.py +0 -0
  193. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/resource.py +0 -0
  194. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/signal.py +0 -0
  195. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/sys.py +0 -0
  196. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/tag.py +0 -0
  197. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/template.py +0 -0
  198. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/thread.py +0 -0
  199. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/tls.py +0 -0
  200. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/types.py +0 -0
  201. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/core/uuid.py +0 -0
  202. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/src/hypershell/submit.py +0 -0
  203. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_autoscale.py +0 -0
  204. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_cancel.py +0 -0
  205. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_client.py +0 -0
  206. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_cluster.py +0 -0
  207. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_data/__init__.py +0 -0
  208. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_data/test_core.py +0 -0
  209. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_data/test_model.py +0 -0
  210. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_factory_fsm.py +0 -0
  211. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_groups.py +0 -0
  212. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_main.py +0 -0
  213. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_meta_status.py +0 -0
  214. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_queue_tls.py +0 -0
  215. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_restart.py +0 -0
  216. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_server.py +0 -0
  217. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_signal.py +0 -0
  218. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_submit.py +0 -0
  219. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_submit_json.py +0 -0
  220. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_template.py +0 -0
  221. {hypershell-2.9.0a1 → hypershell-2.9.0a3}/tests/test_update.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: hypershell
3
- Version: 2.9.0a1
3
+ Version: 2.9.0a3
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
@@ -88,6 +88,8 @@ Options
88
88
  Timeout in seconds for client. Automatically shutdown if no tasks received (default: never).
89
89
 
90
90
  This feature allows for gracefully scaling down a cluster when task throughput subsides.
91
+ The timeout counts from when the client starts, after any ``--delay-start``, so the delay
92
+ does not count toward it.
91
93
 
92
94
 
93
95
  ``-W``, ``--task-timeout`` *SEC*
@@ -94,8 +94,10 @@
94
94
 
95
95
  ``.provider``
96
96
  Database provider (default: 'sqlite'). Supported alternatives include
97
- 'postgres' (or compatible). Support for other providers may be considered in
98
- the future.
97
+ 'postgres' (or compatible) and 'timescale' (alias 'timescaledb'), which is PostgreSQL
98
+ with the TimescaleDB extension: ``hs initdb`` makes the task table a hypertable
99
+ (requires the ``uuid7`` extra; see the TimescaleDB section of :ref:`database <database>`).
100
+ Support for other providers may be considered in the future.
99
101
 
100
102
  ``.file``
101
103
  Only applicable for SQLite provider.
@@ -139,6 +141,14 @@
139
141
  Specify one or more pragmas to apply to database connections (SQLite only).
140
142
  For example ``pragmas = { journal_mode = "wal" }`` to enable WAL-mode.
141
143
 
144
+ ``[timescale]``
145
+ Settings for the TimescaleDB shape ``hs initdb`` gives the task table (``timescale``
146
+ provider only; never forwarded to the connection). Keys: ``chunk_interval``
147
+ (default ``"1 week"``), ``columnstore`` (``true``), ``segmentby`` (``"client_id"``),
148
+ ``orderby`` (``"id DESC"``), ``policy`` (``true``), and ``compress_after``
149
+ (``"4 weeks"``). For example ``timescale = { chunk_interval = "1 day" }``.
150
+ See the TimescaleDB section of :ref:`database <database>`.
151
+
142
152
  ``*``
143
153
  Any additional arguments are forwarded to the provider, e.g., ``encoding = 'utf-8'``.
144
154
 
@@ -0,0 +1,412 @@
1
+ |
2
+
3
+ *HyperShell* can operate entirely within memory and does not require a database.
4
+ This is desirable for ad-hoc, short-lived, or in extreme high-throughput scenarios.
5
+ However, some capabilities are only possible when a database is active
6
+ (such as server restart, task retry, task history, etc).
7
+
8
+ -------------------
9
+
10
+ Connecting
11
+ ----------
12
+
13
+ |
14
+
15
+ Connection details must to be specified by your configuration.
16
+ This can be entirely through environment variables or within files.
17
+
18
+ SQLite only needs the local file path.
19
+
20
+ .. admonition:: Configuration with SQLite file path
21
+ :class: note
22
+
23
+ .. code-block:: toml
24
+
25
+ [database]
26
+ file = "/var/lib/hypershell/main.db"
27
+
28
+ Or via a single environment variable, ``HYPERSHELL_DATABASE_FILE=/tmp/pipeline/task.db``.
29
+
30
+ The default `provider` is SQLite; Postgres must be enabled and requires the ``postgres``
31
+ extra (or a production variant — see :ref:`install`). A local database with local account
32
+ authentication simply needs to know the database name.
33
+
34
+ .. admonition:: Configuration file with basic Postgres
35
+ :class: note
36
+
37
+ .. code-block:: toml
38
+
39
+ [database]
40
+ provider = "postgres"
41
+ database = "hypershell"
42
+
43
+ The ``port`` is assumed to be 5432 but can be specified. If a ``user`` is given then so too must
44
+ a ``password``. The default `public` schema is assumed but can also be specified. Anything else
45
+ is forwarded to the database as a connection parameter; e.g., ``encoding = "utf-8"``.
46
+
47
+ Any parameter ending in the special suffixes ``_env`` or ``_eval`` are interpolated into the
48
+ configuration. E.g., ``password_env`` treats its value as the name of an environment variable
49
+ and ``password_eval`` executes its value as a shell command, both exposing a ``.password`` as the
50
+ expanded version.
51
+
52
+ The special ``.echo`` parameter can be set to ``true`` to enable verbose logging of all database
53
+ transactions. These will be emitted as ``INFO`` level messages.
54
+
55
+ See also the *database* section in the :ref:`configuration <config>` parameter reference.
56
+
57
+ -------------------
58
+
59
+ SQLite Pragmas
60
+ --------------
61
+
62
+ |
63
+
64
+ When using SQLite you can tune the underlying database connection with `pragmas
65
+ <https://sqlite.org/pragma.html>`_. Because pragmas apply per-connection and do not persist,
66
+ *HyperShell* re-applies them automatically every time it opens a connection. Specify them as a
67
+ ``pragmas`` table within the ``[database]`` section:
68
+
69
+ .. admonition:: Configuration with SQLite pragmas
70
+ :class: note
71
+
72
+ .. code-block:: toml
73
+
74
+ [database]
75
+ file = "/var/lib/hypershell/main.db"
76
+ pragmas = {journal_mode = "wal", cache_size = 10000, busy_timeout = 5000}
77
+
78
+ Each entry is issued verbatim as ``PRAGMA <name>=<value>`` on connect. The example above is a good
79
+ general-purpose starting point for concurrent workflows: WAL journaling improves reader/writer
80
+ concurrency, a larger page cache reduces I/O, and a busy timeout lets writers wait briefly rather
81
+ than failing immediately when the database is momentarily locked.
82
+
83
+ Individual pragmas can also be set from the command line:
84
+
85
+ .. admonition:: Set a single pragma
86
+ :class: note
87
+
88
+ .. code-block:: shell
89
+
90
+ hs config set database.pragmas.journal_mode wal
91
+
92
+ .. note::
93
+
94
+ Running ``hs initdb`` (or launching with ``--initdb``) additionally performs a
95
+ ``PRAGMA optimize``. This is safe to run routinely and helps SQLite keep its query-planner
96
+ statistics current. See `optimize <https://sqlite.org/pragma.html#pragma_optimize>`_ for details.
97
+
98
+ -------------------
99
+
100
+ Initialization
101
+ --------------
102
+
103
+ |
104
+
105
+ SQLite is automatically initialized upon opening the connection but
106
+ Postgres must be explicitly initialized via ``hs initdb`` or at launch with
107
+ the ``--initdb`` command-line option.
108
+
109
+ An existing database created by an earlier release is upgraded in place on first use,
110
+ for both SQLite and Postgres; there is no separate migration step. The upgrade only adds what
111
+ is missing (tables, columns, and indexes) and never drops or rewrites existing tasks. The one
112
+ removal is on Postgres, where the ``UNIQUE`` constraints on the retry-chain columns
113
+ (``previous_id`` and ``next_id``) are dropped. The upgrade holds an exclusive lock on the
114
+ tables while it adds columns and builds indexes, which can take minutes on a large database.
115
+ Processes started meanwhile wait for it, logging a line every 30 seconds, and then carry on.
116
+ If the lock is still held after 15 minutes (e.g., by a session left idle in a transaction), the
117
+ upgrade gives up with an error that names what it waited on and leaves the schema unchanged;
118
+ find and stop that session, then try again.
119
+
120
+ SQLite cannot drop a table constraint without rebuilding the table, so a SQLite database
121
+ created by an earlier release (2.8, or the 2.9.0a1 pre-release) keeps those ``UNIQUE``
122
+ constraints. This has no effect on behaviour in normal operation. It only matters in the rare cases where a failed task could be retried twice: two
123
+ servers running against one database (which is not supported), a server killed between
124
+ scheduling a retry and marking the original task as retried, or a task's ``retried`` flag reset
125
+ after the fact. In those cases an older SQLite database rejects the second retry with an error,
126
+ where a newer one records it.
127
+
128
+ See also the :ref:`command-line interface <cli_initdb>` for ``hs initdb``.
129
+
130
+ -------------------
131
+
132
+ TimescaleDB
133
+ -----------
134
+
135
+ |
136
+
137
+ `TimescaleDB <https://github.com/timescale/timescaledb>`_ is a PostgreSQL extension for
138
+ time-series data. It splits a large table into *chunks* by time (a *hypertable*) and can convert
139
+ older chunks into a compressed, column-oriented *columnstore*. A long-lived *HyperShell* database
140
+ fits this shape well: tasks arrive in time order, recent tasks are read and updated constantly,
141
+ and old tasks are kept for history but rarely touched.
142
+
143
+ Select it with the ``timescale`` provider (``timescaledb`` is an alias). It connects exactly like
144
+ PostgreSQL and needs both the ``postgres`` and the ``uuid7`` extras (see :ref:`install`).
145
+
146
+ .. admonition:: Install with TimescaleDB support
147
+ :class: note
148
+
149
+ .. code-block:: shell
150
+
151
+ uv tool install 'hypershell[postgres,uuid7]'
152
+
153
+ .. admonition:: Configuration file with TimescaleDB
154
+ :class: note
155
+
156
+ .. code-block:: toml
157
+
158
+ [database]
159
+ provider = "timescale"
160
+ database = "hypershell"
161
+
162
+ Then initialize the database with ``hs initdb``, or launch ``hs submit`` or ``hs cluster`` with
163
+ ``--initdb``, which runs the same initialization. There is nothing else to run. ``hs server`` does
164
+ not initialize the database, even with ``--initdb``; run ``hs initdb`` before launching it.
165
+
166
+ |
167
+
168
+ What initialization does
169
+ ^^^^^^^^^^^^^^^^^^^^^^^^
170
+
171
+ Before it creates any table, ``hs initdb`` checks the server. The ``timescaledb`` extension must
172
+ be installed on the server; if it is not yet created in the database we create it (the
173
+ database owner may do so, no superuser needed). We fail with a message naming the problem and the fix,
174
+ and create nothing, when the server does not offer the extension, when the role may not create
175
+ it, when the server does not preload its library (``shared_preload_libraries``), or when the
176
+ extension is older than 2.22.0.
177
+
178
+ After the usual schema step, we bring the ``task`` table to its TimescaleDB shape:
179
+
180
+ * **Hypertable.** ``task`` becomes a hypertable partitioned by its ``id`` column, in chunks of
181
+ one week. The ``client`` and ``source`` tables stay plain tables.
182
+ * **Columnstore.** The columnstore is enabled, segmented by ``client_id`` and ordered by
183
+ ``id DESC``, so a compressed chunk keeps each client's tasks together, newest first.
184
+ * **Policy.** A columnstore policy converts chunks older than four weeks.
185
+
186
+ This is equivalent to the following statements, which you therefore never need to run:
187
+
188
+ .. admonition:: What ``hs initdb`` does for you
189
+ :class: note
190
+
191
+ .. code-block:: sql
192
+
193
+ SELECT create_hypertable('task', by_range('id', INTERVAL '1 week'));
194
+ ALTER TABLE task SET (timescaledb.enable_columnstore = true,
195
+ timescaledb.segmentby = 'client_id',
196
+ timescaledb.orderby = 'id DESC');
197
+ CALL add_columnstore_policy('task', after => INTERVAL '4 weeks');
198
+
199
+ Each step is checked first and applied only where something is missing, so running
200
+ ``hs initdb`` again, launching ``hs submit`` or ``hs cluster`` with ``--initdb`` every time, or
201
+ truncating the database with ``hs initdb --truncate`` always arrives at the same state, with one
202
+ policy. A database already in shape logs nothing. Initialization runs in one transaction,
203
+ serialized with the schema step, so concurrent launches are safe.
204
+
205
+ If someone changed the chunk interval, the columnstore settings, or the policy's interval by hand,
206
+ the next ``hs initdb`` puts them back to the configured values (see *Tuning* below) and logs each
207
+ change. A new chunk interval applies to new
208
+ chunks only, and new columnstore settings apply to chunks converted from then on; existing chunks
209
+ keep theirs (recompress them by hand if needed). Turning the columnstore off is never done for
210
+ you; ``hs initdb`` warns instead. If the policy's last run failed, ``hs initdb`` warns and points
211
+ to ``timescaledb_information.job_stats``.
212
+
213
+ Only ``hs initdb`` (with or without ``--truncate``), and ``hs submit`` or ``hs cluster`` launched
214
+ with ``--initdb``, run this initialization. Every other command, including ``hs server`` with or
215
+ without ``--initdb`` and ``hs submit`` or ``hs cluster`` without it, runs only the schema step, as
216
+ for PostgreSQL, and stops on a database that was never initialized. Run ``hs initdb`` after
217
+ upgrading *HyperShell* or TimescaleDB.
218
+
219
+ |
220
+
221
+ Tuning
222
+ ^^^^^^
223
+
224
+ The defaults suit most sites; zero configuration is the norm. To change them, add a ``timescale``
225
+ table to the ``[database]`` section. Each key is optional and falls back to its default.
226
+
227
+ .. admonition:: Configuration file with TimescaleDB settings
228
+ :class: note
229
+
230
+ .. code-block:: toml
231
+
232
+ [database]
233
+ provider = "timescale"
234
+ database = "hypershell"
235
+
236
+ [database.timescale]
237
+ chunk_interval = "1 day"
238
+ compress_after = "2 weeks"
239
+
240
+ ================== =============== ==========================================================
241
+ Key Default Meaning
242
+ ================== =============== ==========================================================
243
+ ``chunk_interval`` ``"1 week"`` Time span of each chunk of ``task``.
244
+ ``columnstore`` ``true`` Enable the columnstore on ``task``.
245
+ ``segmentby`` ``"client_id"`` Columns that group rows in a compressed chunk
246
+ (comma-separated task columns, each once, or ``""`` for none).
247
+ ``orderby`` ``"id DESC"`` Order of rows in a compressed chunk
248
+ (``<column> [ASC|DESC] [NULLS FIRST|LAST]``, comma-separated,
249
+ each column once). TimescaleDB appends ``id DESC`` when
250
+ neither list names ``id``.
251
+ ``policy`` ``true`` Keep a columnstore policy on ``task``.
252
+ ``compress_after`` ``"4 weeks"`` Age at which the policy converts a chunk.
253
+ ================== =============== ==========================================================
254
+
255
+ Intervals are a positive whole number and a unit, from ``microseconds`` to ``months``
256
+ (e.g., ``"12 hours"``). Columns are task columns by name, quoted for you where SQL needs it
257
+ (``group``, for instance). An invalid value, an unknown or repeated column, an unknown key, or
258
+ ``policy = true`` with ``columnstore = false`` stops every command at startup with a message
259
+ naming the key. So does a column named in both ``segmentby`` and ``orderby``, defaults included,
260
+ since TimescaleDB cannot use one column for both segmenting and ordering:
261
+ ``orderby = "client_id DESC"`` needs a ``segmentby`` without ``client_id``, and
262
+ ``segmentby = "id"`` needs an ``orderby`` without ``id``.
263
+
264
+ Changes take effect at the next ``hs initdb``, which applies them as described above: a new
265
+ ``chunk_interval`` applies to new chunks only, new ``segmentby`` or ``orderby`` to chunks converted
266
+ from then on, and a new ``compress_after`` replaces the policy. Setting ``policy = false`` removes
267
+ an existing policy. Setting ``columnstore = false`` (with ``policy = false``) stops ``hs initdb``
268
+ from enabling the columnstore, but does not disable one that is already on; it warns instead.
269
+
270
+ |
271
+
272
+ Why the task identifier is the partition key
273
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
274
+
275
+ With the ``uuid7`` extra, every task identifier is a
276
+ `UUIDv7 <https://www.rfc-editor.org/rfc/rfc9562#name-uuid-version-7>`_, whose leading 48 bits are
277
+ the time it was created, in milliseconds. Since TimescaleDB 2.22.0 a hypertable can be partitioned
278
+ directly by such a column: the timestamp inside the id decides the chunk. So the primary key
279
+ carries row identity, creation time, and chunk routing in one value, and we need no separate time
280
+ column. A lookup or update by ``id`` needs only one chunk, and a range of ids is a range of
281
+ time, which lets PostgreSQL skip every chunk outside it (*chunk exclusion*).
282
+
283
+ .. important::
284
+
285
+ **Every process that creates tasks needs the** ``uuid7`` **extra**, not only the server:
286
+ anything running ``hs submit``, ``hs cluster`` or ``hsx``, or using the library to submit
287
+ tasks. TimescaleDB routes each row by the timestamp inside its id and rejects any other UUID
288
+ version: inserting a UUIDv4 fails with SQLSTATE ``0A000`` (``... is not a version 7 UUID``),
289
+ and the error aborts the whole ``INSERT``, so one bad id loses the entire bundle of tasks
290
+ submitted with it. *HyperShell* refuses to start under the ``timescale`` provider without
291
+ the extra.
292
+
293
+ |
294
+
295
+ Support matrix
296
+ ^^^^^^^^^^^^^^
297
+
298
+ ===================== =============================================================================
299
+ TimescaleDB Behavior
300
+ ===================== =============================================================================
301
+ before 2.22.0 ``hs initdb`` fails: partitioning by a UUIDv7 column is not available.
302
+ 2.22.0 – 2.24.x Hypertable and columnstore; **no policy**. These releases accept the policy,
303
+ but every run of it fails on a UUID-partitioned table, so we skip it and warn.
304
+ 2.25.0 and later Everything above. Tested in CI on 2.31.0 (and on 2.24.0 for the gate).
305
+ ===================== =============================================================================
306
+
307
+ Current TimescaleDB releases support PostgreSQL 16, 17 and 18 (2.29.0 dropped PostgreSQL 15).
308
+
309
+ TimescaleDB comes in two editions, and ``hs initdb`` reads which one the server runs
310
+ (``timescaledb.license``):
311
+
312
+ * **Community** (``timescaledb.license = 'timescale'``, the Timescale License): everything above.
313
+ This is what the official ``timescale/timescaledb`` container images and the TimescaleDB
314
+ packages ship.
315
+ * **Apache** (``timescaledb.license = 'apache'``, Apache-2.0 only, e.g. the ``-oss`` images):
316
+ hypertables, but no columnstore and no policy. We create the hypertable and skip the rest, with
317
+ a warning each time.
318
+
319
+ Where you run PostgreSQL matters. Self-hosted servers can use the official packages or container
320
+ images. *Tiger Cloud* is the managed service from the makers of TimescaleDB. Several other
321
+ managed PostgreSQL offerings do not ship the extension at all, and some ship only the Apache
322
+ edition (as of August 2026); check your provider's list of extensions before choosing the
323
+ ``timescale`` provider there.
324
+
325
+ The project's naming has moved over time: *TimescaleDB* is the extension; the company, formerly
326
+ Timescale, is *TigerData* since 2025; and *Tiger Cloud* is its managed service.
327
+
328
+ |
329
+
330
+ Querying by time
331
+ ^^^^^^^^^^^^^^^^
332
+
333
+ TimescaleDB adds functions for UUIDv7 values (since 2.22.0). To filter tasks by time, compare the
334
+ ``id`` against a boundary id built from a timestamp with ``to_uuidv7_boundary()``. To show when a
335
+ task was created, read the timestamp back out with ``uuid_timestamp()``.
336
+
337
+ .. admonition:: Tasks created in the last day, with their creation time
338
+ :class: note
339
+
340
+ .. code-block:: sql
341
+
342
+ SELECT uuid_timestamp(id) AS created, args, exit_status
343
+ FROM task
344
+ WHERE id >= to_uuidv7_boundary(now() - INTERVAL '1 day')
345
+ ORDER BY id;
346
+
347
+ .. warning::
348
+
349
+ Filter on ``id`` itself, as above. A predicate on a function of the id, such as
350
+ ``WHERE uuid_timestamp(id) > now() - INTERVAL '1 day'``, cannot use chunk exclusion and scans
351
+ every chunk, compressed ones included.
352
+
353
+ |
354
+
355
+ Background workers
356
+ ^^^^^^^^^^^^^^^^^^
357
+
358
+ Policies run as TimescaleDB background jobs. The server needs one worker for the launcher, one
359
+ scheduler for each database that has the extension, and one more for each job while it runs, all
360
+ counted against ``timescaledb.max_background_workers`` (default 16), which in turn must fit within
361
+ PostgreSQL's ``max_worker_processes``. When the workers run out, a database's scheduler does not
362
+ start and its policies silently never run: the server log notes it once, and ``hs initdb`` cannot
363
+ see it. If many databases on one server use the extension, raise
364
+ ``timescaledb.max_background_workers`` (and ``max_worker_processes``) and restart the server. See
365
+ the TimescaleDB documentation on configuring background workers.
366
+
367
+ |
368
+
369
+ Converting an existing table
370
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
371
+
372
+ ``hs initdb`` converts ``task`` only while it is empty. A plain ``task`` table that already holds
373
+ tasks (for example, a database created by an earlier release, or under the ``postgres`` provider)
374
+ is left as it is: ``hs initdb`` succeeds, upgrades the schema, and warns. Everything keeps working
375
+ on the plain table.
376
+
377
+ To convert it yourself, stop every *HyperShell* process using the database and run:
378
+
379
+ .. admonition:: Convert a populated task table by hand
380
+ :class: note
381
+
382
+ .. code-block:: sql
383
+
384
+ SELECT create_hypertable('task', by_range('id', INTERVAL '1 week'),
385
+ create_default_indexes => false, migrate_data => true);
386
+
387
+ then run ``hs initdb`` to add the columnstore and its policy. Be aware that:
388
+
389
+ * It copies every row into chunks in a single transaction, holding an exclusive lock on ``task``
390
+ throughout; on a large table this takes a long time and needs room for a second copy.
391
+ * It aborts, converting nothing, if any task id is not a UUIDv7. Databases written without the
392
+ ``uuid7`` extra (e.g., by releases before 2.9 with only the ``postgres`` extra) hold UUIDv4 ids
393
+ and cannot be converted in place; start a new database instead.
394
+
395
+ |
396
+
397
+ Beyond the defaults
398
+ ^^^^^^^^^^^^^^^^^^^
399
+
400
+ We set up only what every *HyperShell* database benefits from. Data retention and continuous
401
+ aggregates are left to you, through TimescaleDB directly. On a hypertable partitioned by a UUIDv7
402
+ column, as ``task`` is, these need a newer TimescaleDB than the 2.22.0 floor:
403
+
404
+ * ``show_chunks`` and ``drop_chunks`` given a time or an interval (``older_than``,
405
+ ``newer_than``): 2.23.0 (`#8746 <https://github.com/timescale/timescaledb/pull/8746>`_).
406
+ * Continuous aggregates: 2.24.0
407
+ (`#8939 <https://github.com/timescale/timescaledb/pull/8939>`_).
408
+ * Retention policies (``add_retention_policy``): 2.25.0
409
+ (`#9102 <https://github.com/timescale/timescaledb/pull/9102>`_).
410
+
411
+ See the TimescaleDB
412
+ `changelog <https://github.com/timescale/timescaledb/blob/main/CHANGELOG.md>`_ for these releases.
@@ -8,6 +8,16 @@ This can be entirely through environment variables or within files.
8
8
  SQLite is automatically initialized upon opening the connection but
9
9
  Postgres must be explicitly initialized via ``hs initdb`` or at launch with
10
10
  the ``--initdb`` command-line option.
11
+ An existing database created by an earlier release is upgraded in place on first use,
12
+ for both SQLite and Postgres. The upgrade only adds missing tables, columns, and indexes and never
13
+ rewrites existing tasks; on Postgres it also drops the ``UNIQUE`` constraints on the retry-chain
14
+ columns. It holds an exclusive lock while it runs (minutes, on a large database), and processes
15
+ started meanwhile wait for it. A SQLite database created by an
16
+ earlier release (2.8, or the 2.9.0a1 pre-release) keeps those constraints, with no effect on
17
+ behaviour in normal operation. Only in the rare cases where a failed task could be retried
18
+ twice (two servers on one database, which is not supported; a server killed while scheduling a
19
+ retry; a task's ``retried`` flag reset after the fact) does it reject the second retry with an
20
+ error, where a newer database records it.
11
21
 
12
22
  SQLite only needs the local file path.
13
23
 
@@ -27,6 +37,12 @@ local account authentication simply needs to know the database name.
27
37
  provider = "postgres"
28
38
  database = "hypershell"
29
39
 
40
+ With the ``timescale`` provider (alias ``timescaledb``) the database is PostgreSQL with the
41
+ TimescaleDB extension, and ``hs initdb`` also makes the ``task`` table a hypertable partitioned by
42
+ its UUIDv7 ``id``, with columnstore compression and a policy where the server's TimescaleDB edition
43
+ and version support them. Every process that submits tasks then needs the ``uuid7`` extra.
44
+ See the TimescaleDB section of the database documentation.
45
+
30
46
  The ``port`` is assumed to be 5432 but can be specified. If a ``user`` is given then so too must
31
47
  a ``password``. The default `public` schema is assumed but can also be specified. Anything else
32
48
  is forwarded to the database as a connection parameter; e.g., ``encoding = "utf-8"``.
@@ -0,0 +1,9 @@
1
+ Initialize database.
2
+
3
+ For SQLite this happens automatically.
4
+ An existing database from an earlier release is upgraded in place on first use.
5
+ See also ``--initdb`` for the ``hs cluster`` command.
6
+
7
+ The available special actions are mutually exclusive.
8
+ The ``--rotate`` operation migrates completed tasks into the next database partition,
9
+ recording that partition's index in each moved task's ``part`` column.
@@ -16,5 +16,14 @@ exhausted), scheduling halts with a critical message; under ``--forever`` the sc
16
16
  warns and waits for those tasks to be cleared or reverted (see ``hs update``). Use
17
17
  ``--max-retries`` and ``--eager`` to tune retry behavior within a group.
18
18
 
19
+ A task file given to ``hs cluster`` or ``hs server`` is read in full before scheduling begins, so
20
+ its groups run in ascending order whatever order the file lists them in. Input on standard input
21
+ or a pipe is scheduled as it arrives, which is best effort: a lower group that arrives after a
22
+ higher group has started runs once the current group finishes, and *HyperShell* logs a warning
23
+ naming both groups. The clients that ``hs cluster`` launches start once the file is read, so
24
+ their ``-T``/``--timeout`` clock does not run while it is read. A client connected to
25
+ ``hs server`` whose ``-T``/``--timeout`` is shorter than the time to read the file reaches that
26
+ timeout and exits before any task is scheduled, and the server then waits for new clients.
27
+
19
28
  Filter or update tasks by group with the ``-g``/``--group`` option of ``hs list`` and
20
29
  ``hs update``.
@@ -8,7 +8,8 @@ Options
8
8
  ^^^^^^^
9
9
 
10
10
  ``-f``, ``--format`` *FORMAT*
11
- Format task info ([normal], json, yaml).
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
13
 
13
14
  ``--json``
14
15
  Format metadata output as JSON.
@@ -31,6 +31,15 @@ Options
31
31
  ``-g``, ``--group`` *GROUP*
32
32
  Filter results to a single task group.
33
33
 
34
+ ``--part`` *N*
35
+ Filter results to a single database partition.
36
+
37
+ After ``hs initdb --rotate``, completed tasks are moved into numbered partition files and
38
+ stamped with that partition's index in their ``part`` column. ``--part`` *N* restricts the
39
+ listing to a single partition (``--part 0`` is the main database). The filter is a plain
40
+ column comparison and works on any backend, though only the SQLite provider populates
41
+ ``part`` via rotation.
42
+
34
43
  ``-s``, ``--order-by`` *FIELD* ``[--desc]``
35
44
  Order results by field. Optionally, in descending order.
36
45
 
@@ -63,11 +72,13 @@ Options
63
72
  (see ``--cancelled``).
64
73
 
65
74
  ``-f``, ``--format`` *FORMAT*
66
- Specify output format (either ``normal``, ``plain``, ``table``, ``csv``, ``json``).
75
+ Specify output format (either ``normal``, ``card``, ``plain``, ``table``, ``csv``, ``json``).
67
76
 
68
77
  Default is ``normal`` for whole-task output. If any *FIELD* names are given, output is
69
78
  formatted in simple ``plain`` text; use ``csv`` for compliant output. The pretty-printed
70
- ``table`` formatting is good for presentation on wide screens.
79
+ ``table`` formatting is good for presentation on wide screens. The ``card`` format renders
80
+ each task as a richly-formatted, bordered panel that adapts to the terminal width and shows a
81
+ color-coded status badge; like ``normal`` it needs the whole task (not a subset of *FIELD* s).
71
82
 
72
83
  See ``--csv``, ``--json``, and ``--delimiter``.
73
84
 
@@ -1,5 +1,5 @@
1
1
  ``hs`` ``list`` ``[-h]``
2
- ``[FIELD [FIELD ...]]`` ``[-w COND [COND ...]]`` ``[-t TAG [TAG...]]`` ``[-g GROUP]``
2
+ ``[FIELD [FIELD ...]]`` ``[-w COND [COND ...]]`` ``[-t TAG [TAG...]]`` ``[-g GROUP]`` ``[--part N]``
3
3
  ``[--order-by FIELD [--desc]]`` ``[--count | --limit NUM]``
4
4
  ``[-f FORMAT | --json | --csv]`` ``[-d CHAR]`` ``[-i]``
5
5
  ``[--failed | --succeeded | --completed | --remaining]`` ``[--retries]``
@@ -16,7 +16,7 @@ Options
16
16
  See ``task info`` command.
17
17
 
18
18
  ``-f``, ``--format`` *FORMAT*
19
- Format task info ([normal], json, yaml).
19
+ Format task info ([normal], card, json, yaml).
20
20
 
21
21
  ``--json``
22
22
  Format metadata output as JSON.
@@ -515,7 +515,7 @@ This is where *HyperShell* has a natural role beyond the flat regime. Because Ne
515
515
  executor layer is pluggable, *HyperShell* is well-positioned to serve as a **high-throughput
516
516
  executor backend** beneath Nextflow — absorbing the many small tasks that should never become
517
517
  individual Slurm jobs — while Nextflow handles the DAG, containers, and resume logic it does
518
- best. (A ``hypershell-nextflow`` integration is on the :ref:`roadmap <roadmap>`.)
518
+ best.
519
519
 
520
520
  -------------------
521
521
 
@@ -10,6 +10,10 @@
10
10
 
11
11
  Access to low-level database objects and methods.
12
12
 
13
+ The command-line programs check the database before they touch it. Python API callers
14
+ (e.g., :func:`hypershell.server.serve_from`) bypass that check, so run :func:`ensuredb` first;
15
+ it initializes the database or upgrades an existing one in place.
16
+
13
17
  -------------------
14
18
 
15
19
  Functions
@@ -29,6 +33,10 @@ Functions
29
33
 
30
34
  |
31
35
 
36
+ .. autofunction:: upgradedb
37
+
38
+ |
39
+
32
40
  .. autofunction:: truncatedb
33
41
 
34
42
  .. warning::
@@ -6,7 +6,6 @@ Command-line Interface
6
6
  Most people will use *HyperShell* as a command-line utility.
7
7
  Everything shown here is available on Linux and macOS as a *manual page*.
8
8
  See our :ref:`Python API <library>` for use as a library.
9
- See our :ref:`tutorials <tutorial_basic>` (COMING SOON) for use-case specific demonstrations.
10
9
 
11
10
  The ``hsx`` program is short-hand for ``hs cluster``.
12
11
 
@@ -39,9 +39,36 @@ extensions = [
39
39
  'sphinx_sitemap',
40
40
  'sphinx_inline_tabs',
41
41
  'sphinx_copybutton',
42
- 'sphinxcontrib.details.directive'
42
+ 'sphinxcontrib.details.directive',
43
+ 'sphinx_reredirects',
43
44
  ]
44
45
 
46
+ # The Tutorial, blog, and roadmap pages moved to the hypershell.org site. sphinx-reredirects emits a
47
+ # meta-refresh stub at each old path so previously-published ReadTheDocs URLs redirect there instead
48
+ # of 404ing. Keys must be explicit (non-wildcard): the source docs are deleted, and a wildcard would
49
+ # match only pages that still exist. The durable native RTD dashboard redirects are documented in
50
+ # spec/docs-trim-migrated-sections/redirect-runbook.md.
51
+ redirects = {
52
+ 'tutorial/basic': 'https://www.hypershell.org/tutorials/basic',
53
+ 'tutorial/distributed': 'https://www.hypershell.org/tutorials/distributed',
54
+ 'tutorial/hybrid': 'https://www.hypershell.org/tutorials/hybrid',
55
+ 'tutorial/advanced': 'https://www.hypershell.org/tutorials/advanced',
56
+ 'blog/index': 'https://www.hypershell.org/blog',
57
+ 'blog/20230329_2_2_0_release': 'https://www.hypershell.org/blog/hypershell-2-2-0',
58
+ 'blog/20230413_2_3_0_release': 'https://www.hypershell.org/blog/hypershell-2-3-0',
59
+ 'blog/20230602_2_4_0_release': 'https://www.hypershell.org/blog/hypershell-2-4-0',
60
+ 'blog/20240518_2_5_0_release': 'https://www.hypershell.org/blog/hypershell-2-5-0',
61
+ 'blog/20240706_2_5_2_release': 'https://www.hypershell.org/blog/hypershell-2-5-2',
62
+ 'blog/20241115_2_6_0_release': 'https://www.hypershell.org/blog/hypershell-2-6-0',
63
+ 'blog/20241115_announce_logo': 'https://www.hypershell.org/blog/new-logo-and-discord',
64
+ 'blog/20241231_2_6_1_release': 'https://www.hypershell.org/blog/hypershell-2-6-1',
65
+ 'blog/20250215_2_6_5_release': 'https://www.hypershell.org/blog/hypershell-2-6-5',
66
+ 'blog/20250405_2_6_6_release': 'https://www.hypershell.org/blog/hypershell-2-6-6',
67
+ 'blog/20250504_2_7_0_release': 'https://www.hypershell.org/blog/hypershell-2-7-0',
68
+ 'blog/20260705_2_8_0_release': 'https://www.hypershell.org/blog/hypershell-2-8-0',
69
+ 'roadmap': 'https://www.hypershell.org/about',
70
+ }
71
+
45
72
  # Add any paths that contain templates here, relative to this directory.
46
73
  templates_path = ['_templates']
47
74
  source_suffix = '.rst'