diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-12-14 16:39:47 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-12-14 16:39:47 +0100 |
| commit | b39b1d51db2d485e9c60fb4d3f5445474cef8700 (patch) | |
| tree | f2ad4d6c3a5b84b8eeb8689526951f2c204a3f65 /megapixels/commands/faiss/sync_metadata.py | |
| parent | e1fba831b7c22f9840c5e92227f688079b9a206e (diff) | |
mysql import functions
Diffstat (limited to 'megapixels/commands/faiss/sync_metadata.py')
| -rw-r--r-- | megapixels/commands/faiss/sync_metadata.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/megapixels/commands/faiss/sync_metadata.py b/megapixels/commands/faiss/sync_metadata.py new file mode 100644 index 00000000..b01211b4 --- /dev/null +++ b/megapixels/commands/faiss/sync_metadata.py @@ -0,0 +1,18 @@ +""" +Sync the FAISS metadata +""" + +import subprocess +import click + +from app.settings import app_cfg as cfg + +@click.command() +@click.pass_context +def cli(ctx): + """synchronize metadata files from s3""" + sts = subprocess.call([ + "s3cmd", "sync", + "s3://megapixels/v1/metadata/", + cfg.DIR_FAISS_METADATA + '/', + ]) |
