Skip to content

Commit

Permalink
feat(models.py): Introduce processed_by_kcidb_bridge flag
Browse files Browse the repository at this point in the history
To make kcidb data transmission more reliable introduce processed_by_kcidb_bridge
flag, which indicates if node was sent to kcidb (or intentionally
ignored, but processed by kcidb bridge).

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Dec 2, 2024
1 parent 5f6265a commit 8bf4d8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernelci/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ class Node(DatabaseModel):
default=[],
description="User groups that are permitted to update node"
)
processed_by_kcidb_bridge: bool = Field(
description="Flag to indicate if the node was processed by KCIDB-Bridge",
default=False
)

OBJECT_ID_FIELDS: ClassVar[list] = ['parent']
TIMESTAMP_FIELDS: ClassVar[list] = ['created', 'updated', 'timeout', 'holdoff']
Expand Down

0 comments on commit 8bf4d8e

Please sign in to comment.