groundhog-hpc 0.7.0__py3-none-any.whl → 0.7.2__py3-none-any.whl
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.
- groundhog_hpc/templates/shell_command.sh.jinja +1 -0
- groundhog_hpc/templating.py +6 -0
- {groundhog_hpc-0.7.0.dist-info → groundhog_hpc-0.7.2.dist-info}/METADATA +1 -1
- {groundhog_hpc-0.7.0.dist-info → groundhog_hpc-0.7.2.dist-info}/RECORD +7 -7
- {groundhog_hpc-0.7.0.dist-info → groundhog_hpc-0.7.2.dist-info}/WHEEL +0 -0
- {groundhog_hpc-0.7.0.dist-info → groundhog_hpc-0.7.2.dist-info}/entry_points.txt +0 -0
- {groundhog_hpc-0.7.0.dist-info → groundhog_hpc-0.7.2.dist-info}/licenses/LICENSE +0 -0
groundhog_hpc/templating.py
CHANGED
|
@@ -10,6 +10,7 @@ user functions remotely. It creates shell commands that:
|
|
|
10
10
|
import logging
|
|
11
11
|
import os
|
|
12
12
|
import uuid
|
|
13
|
+
from datetime import datetime, timezone
|
|
13
14
|
from hashlib import sha1
|
|
14
15
|
from pathlib import Path
|
|
15
16
|
|
|
@@ -74,6 +75,10 @@ def template_shell_command(script_path: str, function_name: str, payload: str) -
|
|
|
74
75
|
version_spec = get_groundhog_version_spec()
|
|
75
76
|
logger.debug(f"Using groundhog version spec: {version_spec}")
|
|
76
77
|
|
|
78
|
+
# Generate timestamp for groundhog-hpc exclude-newer override
|
|
79
|
+
# This allows groundhog to bypass user's exclude-newer restrictions
|
|
80
|
+
groundhog_timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
|
81
|
+
|
|
77
82
|
# Load runner template
|
|
78
83
|
templates_dir = Path(__file__).parent / "templates"
|
|
79
84
|
jinja_env = Environment(loader=FileSystemLoader(templates_dir))
|
|
@@ -106,6 +111,7 @@ def template_shell_command(script_path: str, function_name: str, payload: str) -
|
|
|
106
111
|
version_spec=version_spec,
|
|
107
112
|
payload=payload,
|
|
108
113
|
log_level=local_log_level,
|
|
114
|
+
groundhog_timestamp=groundhog_timestamp,
|
|
109
115
|
)
|
|
110
116
|
|
|
111
117
|
logger.debug(f"Generated shell command ({len(shell_command_string)} chars)")
|
|
@@ -9,7 +9,7 @@ groundhog_hpc/harness.py,sha256=YjZ6IRmjukofIjqXGnUN9THSwpw8XNIwtC17wv0ImaY,1478
|
|
|
9
9
|
groundhog_hpc/import_hook.py,sha256=McNT9Lyppp3qriWITrlpCyd0WVJiQsizKM8EGT_VZPg,4241
|
|
10
10
|
groundhog_hpc/logging.py,sha256=_SSI9jw5YYvFXZdIkWqr-P05WvWQ1fm2UPTuwqLh9dQ,1699
|
|
11
11
|
groundhog_hpc/serialization.py,sha256=tbUY0d7mNoLGs_u4-ahyqvfK1kdkjBHli54hwiaLWlE,7642
|
|
12
|
-
groundhog_hpc/templating.py,sha256=
|
|
12
|
+
groundhog_hpc/templating.py,sha256=L32Cv1RrLqnTf719i8NGPVHKUCKuw14oGxQX9aif_uA,4618
|
|
13
13
|
groundhog_hpc/utils.py,sha256=ig7mEgmhf-JJ_LQq81yUtZzxstk27Ns2I2P-wC3QS5g,7611
|
|
14
14
|
groundhog_hpc/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
groundhog_hpc/app/add.py,sha256=zZW0eWnwRWJwpXL8V_Saaeb6X2D3G_y5ws19mDk0v3g,4534
|
|
@@ -26,9 +26,9 @@ groundhog_hpc/configuration/pep723.py,sha256=TNbd2_UxOb_dMwtKcEJAJq62dC7SFdu_lt-
|
|
|
26
26
|
groundhog_hpc/configuration/resolver.py,sha256=VoYZ0S2X7BF6wOXz9NaxS71vqANYRsVi5pYT1B8fRAE,10326
|
|
27
27
|
groundhog_hpc/templates/groundhog_run.py.jinja,sha256=-MwRi_k9LswYhi7pvnPwR-SzwBXvrugLofBc_-Yteuk,633
|
|
28
28
|
groundhog_hpc/templates/init_script.py.jinja,sha256=O3-DkastzzpFl8XKsfI3EX3eM0fAsDqalPMCZHeULSE,1017
|
|
29
|
-
groundhog_hpc/templates/shell_command.sh.jinja,sha256=
|
|
30
|
-
groundhog_hpc-0.7.
|
|
31
|
-
groundhog_hpc-0.7.
|
|
32
|
-
groundhog_hpc-0.7.
|
|
33
|
-
groundhog_hpc-0.7.
|
|
34
|
-
groundhog_hpc-0.7.
|
|
29
|
+
groundhog_hpc/templates/shell_command.sh.jinja,sha256=d5j36_CDPZ_MEsI4KS9BuLu1FFu_rByWmQyVIm10tKQ,2009
|
|
30
|
+
groundhog_hpc-0.7.2.dist-info/METADATA,sha256=M4ky2JeVE0FQPsJ0r5WUCEDIEdrB0KiZio9hFrUlo5A,2234
|
|
31
|
+
groundhog_hpc-0.7.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
32
|
+
groundhog_hpc-0.7.2.dist-info/entry_points.txt,sha256=Dk9LTPJ-3vxm-sGsAaddEawPpIDzhM-ZVuyHKjzUCd0,51
|
|
33
|
+
groundhog_hpc-0.7.2.dist-info/licenses/LICENSE,sha256=4WiSzz3h9qYXwc4sFWWFzc45ws_0HLZJmbT6_69IBjs,1078
|
|
34
|
+
groundhog_hpc-0.7.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|