thds.mops 3.8.20250602182922__py3-none-any.whl → 3.8.20250603165938__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.

Potentially problematic release.


This version of thds.mops might be problematic. Click here for more details.

thds/mops/k8s/config.py CHANGED
@@ -32,6 +32,15 @@ k8s_watch_read_timeout_seconds = config.item(
32
32
  # values are, and it's not 100% clear to me that they have different types of timeouts
33
33
  # from trying to grep their codebase.).
34
34
 
35
+ # whereas the below values are designed to timeout slowly, since many k8s pods don't emit logs
36
+ # on a regular basis.
37
+ k8s_logs_watch_connection_timeout_seconds = config.item(
38
+ "mops.k8s.logs.watch.connection_timeout", int(timedelta(seconds=10).total_seconds()), parse=int
39
+ )
40
+ k8s_logs_watch_read_timeout_seconds = config.item(
41
+ "mops.k8s.logs.watch.read_timeout", int(timedelta(seconds=180).total_seconds()), parse=int
42
+ )
43
+
35
44
  k8s_monitor_delay = config.item("mops.k8s.monitor.delay_seconds", 5, parse=int)
36
45
  k8s_monitor_max_attempts = config.item("mops.k8s.monitor.max_attempts", 100, parse=int)
37
46
 
thds/mops/k8s/logging.py CHANGED
@@ -192,8 +192,10 @@ def _scrape_pod_logs(
192
192
  name=pod_name,
193
193
  namespace=config.k8s_namespace(),
194
194
  _request_timeout=(
195
- config.k8s_watch_connection_timeout_seconds(),
196
- config.k8s_watch_read_timeout_seconds(),
195
+ config.k8s_logs_watch_connection_timeout_seconds(),
196
+ config.k8s_logs_watch_read_timeout_seconds(),
197
+ # we want these numbers fairly high, otherwise a pod that's temporarily silent
198
+ # will cause the stream to end, which is noisy and inefficient.
197
199
  ),
198
200
  # i'm occasionally seeing the `stream()` call below hang
199
201
  # indefinitely if logs don't come back from the pod for a
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: thds.mops
3
- Version: 3.8.20250602182922
3
+ Version: 3.8.20250603165938
4
4
  Summary: ML Ops tools for Trilliant Health
5
5
  Author-email: Trilliant Health <info@trillianthealth.com>
6
6
  Project-URL: Repository, https://github.com/TrilliantHealth/ds-monorepo
@@ -20,11 +20,11 @@ thds/mops/k8s/__init__.py,sha256=y4bvR5DQLiriBV0I8CZoQdNlNrXWQ2VpcxY5lOrdnzU,669
20
20
  thds/mops/k8s/_shared.py,sha256=MR-s6ijWUHZGjxK_fsOpHuRDB6kuofjo5xiIb7ul2VM,86
21
21
  thds/mops/k8s/apply_yaml.py,sha256=hVW6dIVbNdzHdbGlc2VAPGkdByv_rH2oPybyIm7tKIM,820
22
22
  thds/mops/k8s/auth.py,sha256=mXFPZvyJYEPASsBatv1r8syB9AoayuHGptHHnNUg8LE,1517
23
- thds/mops/k8s/config.py,sha256=FyzuiUaNq8mQR01GqrezQWSc21QVqjLY9iaJUGu5WAo,2568
23
+ thds/mops/k8s/config.py,sha256=ha8ppDeFnDB2I9tCajiDcfZlamIk73OJe4lzD5buyXU,2993
24
24
  thds/mops/k8s/container_registry.py,sha256=qOiGCE4t_tLYgJDGrhKV9KNv48lF_AlwCDHyFgucd2s,539
25
25
  thds/mops/k8s/jobs.py,sha256=3u0jc5Fnll2ncnmcdTUHlcxJ_KYNK9s66W7r6ez49As,3271
26
26
  thds/mops/k8s/launch.py,sha256=SIeao2oJVKEvef8vmWDoE8QAPIMBV2TmRxHYBRXaJFM,10479
27
- thds/mops/k8s/logging.py,sha256=yJ5Gt_luyo6LXbUJSXbhA4f1z7il1WuHQjMcP8eB00U,9591
27
+ thds/mops/k8s/logging.py,sha256=QstE_d8a8yytTdj9S43cRetCzKTAJSc1ap0In9rkpdA,9768
28
28
  thds/mops/k8s/namespace.py,sha256=Z6trVTU9WFashto4PqIhTcxu-foOF93W0TpgqCU7WIA,383
29
29
  thds/mops/k8s/node_selection.py,sha256=Gy2Jz8IxZblg2LmtGg8-MtKI4RmXz2AMXqFPP8OQyu0,2065
30
30
  thds/mops/k8s/retry.py,sha256=JVfP304kItpLs5nrONHE5UWkVWlrFGlV_oFQqhq3zHg,2846
@@ -105,8 +105,8 @@ thds/mops/pure/tools/summarize/cli.py,sha256=7kDtn24ok8oBO3jFjlMmOK3jnZYpMoE_5Y8
105
105
  thds/mops/pure/tools/summarize/run_summary.py,sha256=LUtvbankAYbss2NCF_XbNl05jkNgxYz_SLyERJlp4sk,5773
106
106
  thds/mops/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
107
  thds/mops/testing/deferred_imports.py,sha256=f0ezCgQAtzTqW1yAOb0OWgsB9ZrlztLB894LtpWDaVw,3780
108
- thds_mops-3.8.20250602182922.dist-info/METADATA,sha256=sigW-qM8htEhi0hjYjve882Zv2GpAaxWdmnOsUc4J8o,2222
109
- thds_mops-3.8.20250602182922.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
110
- thds_mops-3.8.20250602182922.dist-info/entry_points.txt,sha256=GShNqjcjbq0TAJuwpyeCI5XCltiwdZxnNHkBpmYbNkU,329
111
- thds_mops-3.8.20250602182922.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
112
- thds_mops-3.8.20250602182922.dist-info/RECORD,,
108
+ thds_mops-3.8.20250603165938.dist-info/METADATA,sha256=SebuJztesDKcsRUOo6rf---yjdjihCg9V0QmLxBeqSA,2222
109
+ thds_mops-3.8.20250603165938.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
110
+ thds_mops-3.8.20250603165938.dist-info/entry_points.txt,sha256=GShNqjcjbq0TAJuwpyeCI5XCltiwdZxnNHkBpmYbNkU,329
111
+ thds_mops-3.8.20250603165938.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
112
+ thds_mops-3.8.20250603165938.dist-info/RECORD,,