Skip to content

Commit 13568b0

Browse files
authored
Merge pull request #33 from xpromache/parchive-backfilling-disabling
Added operations to enable/disable the backfilling
2 parents c2886a2 + d8c5dce commit 13568b0

File tree

1 file changed

+20
-0
lines changed
  • yamcs-client/src/yamcs/client/archive

1 file changed

+20
-0
lines changed

yamcs-client/src/yamcs/client/archive/client.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,26 @@ def purge_parameter_archive(self):
12331233
url = f"/archive/{self._instance}/parameterArchive:purge"
12341234
self.ctx.post_proto(url, data=req.SerializeToString())
12351235

1236+
def enable_parameter_archive_backfilling(self):
1237+
"""
1238+
Enables the automatic backfilling (rebuilding) of the parameter archive.
1239+
1240+
If the backfilling is already enabled, this operation has no effect.
1241+
"""
1242+
req = parameter_archive_service_pb2.PurgeRequest()
1243+
url = f"/archive/{self._instance}/parameterArchive:enableBackfilling"
1244+
self.ctx.post_proto(url, data=req.SerializeToString())
1245+
1246+
def disable_parameter_archive_backfilling(self):
1247+
"""
1248+
Disables the automatic backfilling (rebuilding) of the parameter archive.
1249+
1250+
If the backfilling is already disabled, this operation has no effect.
1251+
"""
1252+
req = parameter_archive_service_pb2.PurgeRequest()
1253+
url = f"/archive/{self._instance}/parameterArchive:disableBackfilling"
1254+
self.ctx.post_proto(url, data=req.SerializeToString())
1255+
12361256
def rebuild_ccsds_index(
12371257
self,
12381258
start: Optional[datetime] = None,

0 commit comments

Comments
 (0)