Skip to content
Snippets Groups Projects
Commit 0642a854 authored by Joost Hemmen's avatar Joost Hemmen :basketball:
Browse files

clean up - set crontab.txt to be empty in repository and only provide crontab.example.txt

parent c14f36b9
No related branches found
No related tags found
1 merge request!152Resolve "wrong path in cv sync job"
Pipeline #381075 passed
30 1-23/3 * * * /scripts/sms_sync/sms_cv_tables.py > $STDOUT 2>$STDERR
15,45 * * * * /usr/bin/python3 /scripts/sms_sync/sms_cv_tables.py > $STDOUT 2>$STDERR
#!/user/bin/python3
from sync_utils import (
create_table,
upsert_table,
get_connection_from_env,
)
from os import chdir, environ
import os
import json
url = environ.get("CV_API_URL")
home = environ.get("HOME")
chdir(home)
script_dir = os.path.dirname(os.path.abspath(__file__))
file_names = [
"sms_cv_measured_quantity.json"
]
file_path_list = ["scripts/sms_sync/tables/sms_cv_measured_quantity.json"]
file_path_list = [os.path.join(script_dir, "tables", file_name) for file_name in file_names]
if __name__ == "__main__":
url = os.environ.get("CV_API_URL")
home = os.environ.get("HOME")
os.chdir(home)
for file_path in file_path_list:
db = get_connection_from_env()
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment