Skip to content

API

machine class-attribute

machine = ForeignKeyField(
    MachineModel, backref="actions", on_delete="CASCADE"
)

exit_code class-attribute

exit_code = IntegerField(default=0)

out class-attribute

out = TextField(null=True)

err class-attribute

err = TextField(null=True)

cmd class-attribute

cmd = TextField(null=True)

created class-attribute

created = DateTimeField(default=datetime.datetime.utcnow())

extra class-attribute

extra = JSONField(null=True)

is_failed property

is_failed: bool

Did action pass or fail

Meta

table_name class-attribute

table_name = 'actions'