Skip to main content
Version: 0.6

event

superduper.base.event

Source code

unpack_event​

unpack_event(dict)
ParameterDescription
dictSerialized event.

Helper function to deserialize event into Event class.

Event​

Event(self) -> None

Event dataclass to store event data.

Job​

Job(self,
*,
context: str,
component: str,
identifier: str,
uuid: str,
args: Sequence[Any] = (),
kwargs: Dict = <factory>,
time: datetime.datetime = <factory>,
job_id: Optional[str] = <factory>,
method: str,
status: str = 'pending',
dependencies: List[str] = <factory>) -> None
ParameterDescription
contextcontext component for job creation
componenttype of component
identifieridentifier of component
uuiduuid of component
argsarguments of method
kwargskwargs of method
timetime of job creation
job_idid of job
methodmethod to run
statusstatus of job
dependencieslist of job_id dependencies

Job event.

Create​

Create(self,
*,
context: str,
path: str,
data: Dict,
parent: list | None = None) -> None
ParameterDescription
contextthe component context of creation.
pathpath of the component to be created
datathe data of the component
parentthe parent of the component (if any)

Class for component creation events.

Signal​

Signal(self,
*,
msg: str,
context: str) -> None
ParameterDescription
msgsignal to send
contextthe context of component creation

Event used to send a signal to the scheduler.

Update​

Update(self,
*,
context: str,
component: str,
data: Dict,
parent: list | None = None) -> None
ParameterDescription
contextthe component context of creation.
componentthe type of component to be created
datathe component data to be created
parentthe parent of the component (if any)

Update component event.

Change​

Change(self,
*,
type: str,
queue: str,
ids: Sequence[str]) -> None
ParameterDescription
idslist of ids detected in databackend. the ids affected
typedelete
queuewhich table was affected

Class for streaming change events.