Skip to content

Commit 0fa4f1d

Browse files
Jeny Sadadiagctucker
Jeny Sadadia
authored andcommitted
api.models: remove Node.wait_for_node method
Need to drop the method to wait for node to get completed as it is not required anymore as per the new design changes. Signed-off-by: Jeny Sadadia <[email protected]>
1 parent 322b2e7 commit 0fa4f1d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

api/models.py

-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
"""KernelCI API model definitions"""
88

9-
import asyncio
109
from datetime import datetime
1110
from typing import Optional, Dict, List
1211
import enum
@@ -226,14 +225,6 @@ def translate_fields(cls, params: dict):
226225
translated['parent'] = ObjectId(parent)
227226
return translated
228227

229-
@classmethod
230-
async def wait_for_node(cls, timeout):
231-
"""Wait for node to get completed until timeout"""
232-
current_time = datetime.utcnow()
233-
if timeout > current_time:
234-
time_delta = timeout - current_time
235-
await asyncio.sleep(time_delta.total_seconds())
236-
237228

238229
class Regression(Node):
239230
"""API model for regression tracking"""

0 commit comments

Comments
 (0)