Skip to main content

event

superduper.base.event

Source code

unpack_event​

unpack_event(dict)
ParameterDescription
dictSerialized event.

Helper function to deserialize event into Event class.

Job​

Job(self,
*,
context: str,
type_id: 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: Sequence[str] = ()) -> None
ParameterDescription
contextcontext component for job creation
type_idtype_id 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.

Event​

Event(self) -> None

Event dataclass to store event data.

Create​

Create(self,
*,
context: str,
component: Dict,
parent: str | None = None) -> None
ParameterDescription
contextthe component context of creation.
componentthe component to be created
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.

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.