Skip to content

Commit f1fffdf

Browse files
author
Jeny Sadadia
committed
api.helper: extract and return is_retry flag from event
Fetch flag marking a job retry from event and return it along with node and `is_hierarchy` flag. Signed-off-by: Jeny Sadadia <[email protected]>
1 parent c7ad564 commit f1fffdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernelci/api/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def receive_event_node(self, sub_id):
130130
continue
131131
if all(self.pubsub_event_filter(sub_id, obj)
132132
for obj in [node, event]):
133-
return node, event.get('is_hierarchy')
133+
return node, event.get('is_hierarchy'), event.get('is_retry')
134134

135135
def _find_container(self, field, node):
136136
"""

0 commit comments

Comments
 (0)