icechunk.ops#
Operation types: repository updates, garbage collection summaries.
icechunk.ops.GCSummary #
Summarizes the results of a garbage collection operation on an icechunk repo
Attributes:
| Name | Type | Description |
|---|---|---|
attributes_deleted | int | How many attributes were deleted. |
bytes_deleted | int | How many bytes were deleted. |
chunks_deleted | int | How many chunks were deleted. |
delete_errors | list[str] | The first distinct delete error messages, at most ten. |
manifests_deleted | int | How many manifests were deleted. |
objects_failed_to_delete | int | How many objects could not be deleted because the delete request failed. |
skipped_phases | list[str] | Delete phases skipped because an earlier phase had failures, in order. |
snapshots_deleted | int | How many snapshots were deleted. |
throttled_batches | int | How many delete requests the store throttled. Each one was retried |
transaction_logs_deleted | int | How many transaction logs were deleted. |
Source code in python/icechunk/_icechunk_python.pyi
objects_failed_to_delete property #
How many objects could not be deleted because the delete request failed. They remain garbage for the next run.
skipped_phases property #
Delete phases skipped because an earlier phase had failures, in order. Possible values: "transaction_logs", "manifests", "chunks".
throttled_batches property #
How many delete requests the store throttled. Each one was retried after a pause, and none of them counts as a failure.
transaction_logs_deleted property #
How many transaction logs were deleted.
icechunk.ops.Update #
A single entry in the repository operations log.
Each update records an administrative action taken on the repository, along with when it occurred.
Attributes:
| Name | Type | Description |
|---|---|---|
kind | UpdateType | The type of operation that was performed. |
updated_at | datetime | When the operation occurred. |
backup_path | str | None | Path to a backup created before the operation, if any. |
Source code in python/icechunk/_icechunk_python.pyi
icechunk.ops.UpdateType #
The type of operation recorded in an Update.
This is a tagged union — each variant is a nested class with its own fields describing what happened.
Classes:
| Name | Description |
|---|---|
BranchCreated | A new branch was created. |
BranchDeleted | A branch was deleted. |
BranchReset | A branch was reset to a different snapshot. |
CommitAmended | A commit on a branch was amended. |
ConfigChanged | The repository configuration was changed. |
ExpirationRan | Snapshot expiration was run. |
FeatureFlagChanged | A feature flag was changed. |
GCRan | Garbage collection was run. |
MetadataChanged | Repository metadata was changed. |
NewCommit | A new commit was made on a branch. |
NewDetachedSnapshot | A new detached snapshot was created. |
RepoInitialized | The repository was initialized. |
RepoMigrated | The repository was migrated to a new spec version. |
RepoStatusChanged | The repository availability status was changed. |
TagCreated | A new tag was created. |
TagDeleted | A tag was deleted. |
Source code in python/icechunk/_icechunk_python.pyi
2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 | |
BranchCreated #
BranchDeleted #
BranchReset #
Bases: UpdateType
A branch was reset to a different snapshot.
Source code in python/icechunk/_icechunk_python.pyi
CommitAmended #
Bases: UpdateType
A commit on a branch was amended.
Source code in python/icechunk/_icechunk_python.pyi
ConfigChanged #
Bases: UpdateType
The repository configuration was changed.
Source code in python/icechunk/_icechunk_python.pyi
ExpirationRan #
FeatureFlagChanged #
GCRan #
MetadataChanged #
Bases: UpdateType
Repository metadata was changed.
Source code in python/icechunk/_icechunk_python.pyi
NewCommit #
NewDetachedSnapshot #
RepoInitialized #
Bases: UpdateType
The repository was initialized.
Source code in python/icechunk/_icechunk_python.pyi
RepoMigrated #
Bases: UpdateType
The repository was migrated to a new spec version.