richqueue 1.5__tar.gz → 1.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: richqueue
3
- Version: 1.5
3
+ Version: 1.6
4
4
  Summary: RichQueue
5
5
  Project-URL: Homepage, https://github.com/mwinokan/RichQueue/issues
6
6
  Project-URL: Bug Tracker, https://github.com/mwinokan/RichQueue/issues
@@ -3,7 +3,7 @@ requires = ["hatchling"]
3
3
  build-backend = "hatchling.build"
4
4
  [project]
5
5
  name = "richqueue"
6
- version = "1.5"
6
+ version = "1.6"
7
7
  authors = [
8
8
  { name = "Max Winokan", email = "max@winokan.com" },
9
9
  ]
@@ -190,10 +190,12 @@ def get_squeue(
190
190
 
191
191
  global METADATA
192
192
 
193
+ meta = payload["meta"]
194
+
193
195
  METADATA = {
194
- "cluster_name": payload["meta"]["slurm"]["cluster"],
195
- "user": payload["meta"]["client"]["user"],
196
- "group": payload["meta"]["client"]["group"],
196
+ "cluster_name": meta.get("slurm", {}).get("cluster", "unknown HPC"),
197
+ "user": meta.get("client", {}).get("user", "unknown user"),
198
+ "group": meta.get("client", {}).get("group", "unknown group"),
197
199
  }
198
200
 
199
201
  # parse payload
@@ -270,10 +272,12 @@ def get_sacct(
270
272
 
271
273
  global METADATA
272
274
 
275
+ meta = payload["meta"]
276
+
273
277
  METADATA = {
274
- "cluster_name": payload["meta"]["slurm"]["cluster"],
275
- "user": payload["meta"]["client"]["user"],
276
- "group": payload["meta"]["client"]["group"],
278
+ "cluster_name": meta.get("slurm", {}).get("cluster", "unknown HPC"),
279
+ "user": meta.get("client", {}).get("user", "unknown user"),
280
+ "group": meta.get("client", {}).get("group", "unknown group"),
277
281
  "hist": hist,
278
282
  "hist_unit": hist_unit,
279
283
  }
@@ -320,10 +324,12 @@ def get_sinfo(**kwargs) -> "pandas.DataFrame":
320
324
 
321
325
  global METADATA
322
326
 
327
+ meta = payload["meta"]
328
+
323
329
  METADATA = {
324
- "cluster_name": payload["meta"]["slurm"]["cluster"],
325
- "user": payload["meta"]["client"]["user"],
326
- "group": payload["meta"]["client"]["group"],
330
+ "cluster_name": meta.get("slurm", {}).get("cluster", "unknown HPC"),
331
+ "user": meta.get("client", {}).get("user", "unknown user"),
332
+ "group": meta.get("client", {}).get("group", "unknown group"),
327
333
  }
328
334
 
329
335
  df = DataFrame(payload["sinfo"])
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes