Skip to content

Commit

Permalink
Add debugging for slurmestd version
Browse files Browse the repository at this point in the history
  • Loading branch information
rstyd committed Dec 2, 2024
1 parent 58bf543 commit 2728fe2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beeflow/common/worker/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def get_slurmrestd_version():
print("Slurmrestd OpenAPI format has changed and things may break")
api_versions = [line.split('/')[1] for line in resp[1:] if re.search(r"openapi/v\d+\.\d+\.\d+",
line)]

print(api_versions)
# Sort the versions and grab the newest one
newest_api = sorted(api_versions, key=Version, reverse=True)[0]
print(f"Inferred slurmrestd version: {newest_api}")
Expand Down

0 comments on commit 2728fe2

Please sign in to comment.