mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 12:45:19 +00:00
print last update time for docker registry images
This commit is contained in:
parent
1a0d42a998
commit
96664684f8
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ async def get_updated_images() -> list[str]:
|
|||
case _:
|
||||
raise Exception(f"Invalid image spec: {image}")
|
||||
last_updated = datetime.datetime.fromisoformat(last_updated_iso)
|
||||
logging.info(f"Image {image} last updated at {last_updated}")
|
||||
if now - last_updated <= datetime.timedelta(days=1):
|
||||
updated_images.append(image)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue