archivebox.core.statemachines

Module Contents

Classes

SnapshotMachine

State machine for managing Snapshot lifecycle.

ArchiveResultMachine

State machine for managing ArchiveResult lifecycle.

API

class archivebox.core.statemachines.SnapshotMachine(snapshot, *args, **kwargs)[source]

Bases: statemachine.StateMachine

State machine for managing Snapshot lifecycle.

https://github.com/ArchiveBox/ArchiveBox/wiki/ArchiveBox-Architecture-Diagrams

Initialization

model: core.models.Snapshot[source]

None

queued[source]

‘State(…)’

started[source]

‘State(…)’

sealed[source]

‘State(…)’

tick[source]

None

__repr__() str[source]
__str__() str[source]
can_start() bool[source]
is_finished() bool[source]
enter_queued()[source]
enter_started()[source]
enter_sealed()[source]
class archivebox.core.statemachines.ArchiveResultMachine(archiveresult, *args, **kwargs)[source]

Bases: statemachine.StateMachine

State machine for managing ArchiveResult lifecycle.

https://github.com/ArchiveBox/ArchiveBox/wiki/ArchiveBox-Architecture-Diagrams

Initialization

model: core.models.ArchiveResult[source]

None

queued[source]

‘State(…)’

started[source]

‘State(…)’

backoff[source]

‘State(…)’

succeeded[source]

‘State(…)’

failed[source]

‘State(…)’

tick[source]

None

__repr__() str[source]
__str__() str[source]
can_start() bool[source]
is_succeeded() bool[source]
is_failed() bool[source]
is_backoff() bool[source]
is_finished() bool[source]
enter_queued()[source]
enter_started()[source]
enter_backoff()[source]
enter_succeeded()[source]
enter_failed()[source]
after_transition(event: str, source: statemachine.State, target: statemachine.State)[source]