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
2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 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 | |
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.