Skip to content

laboneq.workflow.logbook.core

Basic logbook classes.

Logbook

Bases: ExecutionRecorder

Protocol for storing the record of a single workflow execution.

LogbookStore

Bases: ABC

Protocol for storing a collection of records of workflow execution.

activate()

Activate this logbook store.

Workflows write to all active logbook stores by default.

create_logbook(workflow, start_time) abstractmethod

Create a logbook for recording a single workflow execution.

deactivate()

Deactivate this logbook store.

If this store is not active, this method does nothing.

active_logbook_stores()

Returns a list of active logbook stores.

Modifying the list does not affect the active logbooks. Use LogBookStore.activate() or LogBookStore.deactivate() to activate or deactivate individual logbook stores, respectively.

format_time(time)

Format a datetime object as a string.