Skip to content

Commit 4daf9f2

Browse files
Merge pull request #44 from AkulS1008/main
2 parents 796e911 + 51faa16 commit 4daf9f2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from netunicorn.base import Pipeline
2+
from netunicorn.library.tasks.measurements.ookla_speedtest import OoklaSpeedtest
3+
from netunicorn.library.tasks.data_transfer.send_data import SendData
4+
from netunicorn.library.tasks.data_transfer.fetch_data import FetchData
5+
import os
6+
7+
def netflex_full_loop_pipeline() -> Pipeline:
8+
"""
9+
Run a speedtest using ookla CLI and then providing user-friendly analysis of the results
10+
through passing the results to a RAG.
11+
:return: pipeline to run
12+
"""
13+
pipeline = (
14+
Pipeline()
15+
.then(OoklaSpeedtest(name="Ookla CLI Speedtest"))
16+
.then(SendData(task_descriptors=[SendData.TaskDescriptor("Ookla CLI Speedtest", "ookla-speedtest", None)], endpoint=os.getenv('RAG_ENDPOINT'), name="send"))
17+
.then(FetchData(send_data_task="send", endpoint=os.getenv("RAG_ENDPOINT"), name="fetch"))
18+
)
19+
return pipeline

0 commit comments

Comments
 (0)