Added course pipeline: crawl, cache, classify, extract, and CTDL map - #283
nsoto-tech wants to merge 11 commits into
Conversation
|
@nsoto-tech Create a top level folder named Under that, have a folder for each stage of the ETL pipeline.
and a Under these folders, you can move the rest of the scripts. There will be multiple such scripts under these folders. You can see existing patterns for command structures here: https://docs.google.com/document/d/1WD0AQAWuY0klJYznBST7-O93mHXSlR-k0LRQQPAqCKU/edit?tab=t.0#heading=h.xr3byxpiy9rz and the code that follows that structure here in Note that the same scripts will be used for both benchmarking as well as actual extractions. So there is no difference between "golden" or non-golden from the script point of view. Creating golden examples is a business scenario that is enabled through the scripts and promoting/copy/pasting files from one folder to another. |
|
@rohit-joy xtra-cli/ is set up as you described: one folder per ETL stage (crawling, downloading, extraction, transformation, scoring) plus lib for shared code. Commands follow the ceops noun-verb form. Same scripts for a live extract and for a pack that later gets copied into a reviewed folder. Golden is that destination after review (pack promote), not a second pipeline. |
|
@nsoto-tech Thanks for the updates. Some questions:
|
| @@ -0,0 +1,69 @@ | |||
| #!/usr/bin/env python3 | |||
There was a problem hiding this comment.
Name the test files with prefix test_.
There was a problem hiding this comment.
Renamed test files as suggested
| @@ -0,0 +1,69 @@ | |||
| #!/usr/bin/env python3 | |||
There was a problem hiding this comment.
Every source file in the src folder must have a corresponding test_ file under tests with the same folder structure.
There was a problem hiding this comment.
Modified folder structure as suggested way
|
|
@nsoto-tech Good progress! Some more things:
|
|
|
||
| DEFAULT_MIN_INTERVAL_SECONDS = 180.0 | ||
| DEFAULT_BACKOFF_BASE_SECONDS = 180.0 | ||
| DEFAULT_BACKOFF_MAX_SECONDS = 3600.0 |
| @@ -0,0 +1,170 @@ | |||
| """xtra catalog crawl | |||
There was a problem hiding this comment.
Feel free to add the discover.py script here separately. Don't do discovery in the crawling stage.
No description provided.