MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / delete_after

Function delete_after

misc/python/materialize/scratch.py:108–113  ·  view source on GitHub ↗
(tags: dict[str, str])

Source from the content-addressed store, hash-verified

106
107
108def delete_after(tags: dict[str, str]) -> datetime.datetime | None:
109 unix = tags.get("scratch-delete-after")
110 if not unix:
111 return None
112 unix = int(float(unix))
113 return datetime.datetime.fromtimestamp(unix)
114
115
116def instance_host(instance: Instance, user: str | None = None) -> str:

Callers 1

print_instancesFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected