-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tech report pipeline - add flex template (#251)
* added pipeline runner run_tech_report.py * added flex template metadata flex_template_metadata_tech_report.json * added tech_report to flex template build script build_flex_template.sh * added tech_report to flex template run script run_flex_template.sh * added .venv to .gitignore * updated README with minimal information
- Loading branch information
1 parent
de42ed9
commit dd1ec00
Showing
6 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
/build | ||
/env | ||
/venv | ||
/.venv | ||
*.pyc | ||
/.vscode | ||
.coverage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "Technology Report API pipeline", | ||
"description": "Runs a pipeline to generate firestore API results", | ||
"parameters": [ | ||
{ | ||
"name": "query_type", | ||
"label":"Query type", | ||
"helpText": "Technology query type", | ||
"isOptional": true | ||
}, | ||
{ | ||
"name": "firestore_project", | ||
"label":"Firestore project", | ||
"helpText": "Google Cloud project with Firestore", | ||
"isOptional": true | ||
}, | ||
{ | ||
"name": "firestore_collection", | ||
"label":"Firestore collection", | ||
"helpText": "Firestore collection with HTTPArchive data", | ||
"isOptional": true | ||
}, | ||
{ | ||
"name": "firestore_database", | ||
"label":"Firestore database", | ||
"helpText": "Firestore database with HTTPArchive data", | ||
"isOptional": true | ||
}, | ||
{ | ||
"name": "date", | ||
"label":"Date", | ||
"helpText": "Date to query", | ||
"isOptional": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import logging | ||
|
||
from apache_beam.runners import DataflowRunner | ||
|
||
from modules import tech_report_pipeline | ||
|
||
|
||
def run(argv=None): | ||
logging.getLogger().setLevel(logging.INFO) | ||
p = tech_report_pipeline.create_pipeline() | ||
pipeline_result = p.run(argv) | ||
if not isinstance(p.runner, DataflowRunner): | ||
pipeline_result.wait_until_finish() | ||
|
||
|
||
if __name__ == "__main__": | ||
run() |