211c215c654c363993a9d480cbda679de0bbd7e9 hiram Fri May 1 13:59:15 2026 -0700 eliminating stderr information to avoid cron job noise refs #31811 diff --git src/hg/utils/otto/userRequests/galaxyCleanup.py src/hg/utils/otto/userRequests/galaxyCleanup.py index 82b3b29f29b..9de51606345 100755 --- src/hg/utils/otto/userRequests/galaxyCleanup.py +++ src/hg/utils/otto/userRequests/galaxyCleanup.py @@ -44,35 +44,35 @@ f"from {profileJson}") inv = apiCall("GET", f"{galaxyUrl}/api/invocations/{invocationId}", apiKey) if inv is None: print(f"# invocation {invocationId} already gone", file=sys.stderr) return historyId = inv.get("history_id") # purge first -- this is the step that actually frees disk if historyId: try: apiCall("DELETE", f"{galaxyUrl}/api/histories/{historyId}?purge=true", apiKey) - print(f"# purged history {historyId}", file=sys.stderr) +# print(f"# purged history {historyId}", file=sys.stderr) except urllib.error.HTTPError as e: sys.exit(f"ERROR: failed to purge history {historyId}: {e}") else: print(f"# WARNING: invocation {invocationId} has no history_id", file=sys.stderr) try: apiCall("DELETE", f"{galaxyUrl}/api/invocations/{invocationId}", apiKey) - print(f"# deleted invocation {invocationId}", file=sys.stderr) +# print(f"# deleted invocation {invocationId}", file=sys.stderr) except urllib.error.HTTPError as e: # history is already purged, so disk is reclaimed -- the # invocation row remaining is cosmetic print(f"# WARNING: invocation delete returned {e.code}, " f"history already purged", file=sys.stderr) if __name__ == "__main__": main()