mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
add ABID model check and fix model inheritance
This commit is contained in:
parent
c374d7695e
commit
1ceaa1ac7a
3 changed files with 190 additions and 20 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue