-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6b673b
commit 0510864
Showing
1 changed file
with
29 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# CR3 metadata generator ETL | ||
|
||
## Intent | ||
|
||
This program is used to inspect the CR3s on file in S3 and to generate some metadata about them. | ||
This metadata is then stored in the database and used by the various portions of the stack to determine | ||
if and when a CR3 can be made available to users. | ||
|
||
## Airflow DAG | ||
|
||
This program is a python script which is bundled up into a docker image and to be run by [Airflow](https://github.com/cityofaustin/atd-airflow/blob/production/dags/vz_populate_cr3_metadata.py). | ||
|
||
## Local use | ||
|
||
This program also comes with a docker compose stack. To run it locally, you can do something along these lines: | ||
|
||
```bash | ||
cp env_template env; | ||
|
||
# Edit the env file to include the necessary environment variables | ||
|
||
# The following command will drop you in a bash shell in the metadata container. | ||
docker compose run metadata; | ||
|
||
# some example invocations | ||
./populate_cr3_file_metadata.py -h; # see the options | ||
./populate_cr3_file_metadata.py -a; # process the entire queue, quietly, with a progress bar | ||
./populate_cr3_file_metadata.py -t 10 -s 100 -v; # process the first 100 CR3s in the queue, verbosely, using 10 threads. | ||
``` |