add ABID model check and fix model inheritance

This commit is contained in:
Nick Sweeting 2024-12-03 02:14:21 -08:00
parent c374d7695e
commit 1ceaa1ac7a
No known key found for this signature in database
3 changed files with 190 additions and 20 deletions

View file

@ -93,6 +93,11 @@ class SnapshotMachine(StateMachine, strict_states=True):
status=Snapshot.StatusChoices.STARTED,
)
# run_subcommand([
# 'archivebox', 'snapshot', self.snapshot.ABID,
# '--start',
# ])
@sealed.enter
def enter_sealed(self):
print(f'{self}.on_sealed() ↳ snapshot.retry_at=None')
@ -183,7 +188,6 @@ class ArchiveResultMachine(StateMachine, strict_states=True):
def is_finished(self) -> bool:
return self.is_failed() or self.is_succeeded()
@queued.enter
def enter_queued(self):