Update: #61 on prod environment
This commit is contained in:
parent
0a0e206229
commit
1d6bd417d9
@ -196,10 +196,7 @@ services:
|
||||
- ctel-sbt
|
||||
|
||||
dashboard_refresh:
|
||||
build:
|
||||
context: api-cronjob
|
||||
dockerfile: Dockerfile
|
||||
image: sidp/api-caller-sbt:{{tag}}
|
||||
image: public.ecr.aws/v4n9y6r8/sidp/api-caller-sbt:{{tag}}
|
||||
environment:
|
||||
- PROXY=http://be-ctel-sbt:9000
|
||||
- ADMIN_USER_NAME=${ADMIN_USER_NAME}
|
||||
|
@ -4,15 +4,20 @@ import boto3
|
||||
import os
|
||||
from tqdm import tqdm
|
||||
from datetime import datetime, timedelta
|
||||
from pytz import timezone
|
||||
import pytz
|
||||
from django.utils import timezone
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("../.env_prod")
|
||||
|
||||
OUTPUT_NAME = "all_0226_0304"
|
||||
START_DATE = datetime(2024, 2, 26, tzinfo=timezone('Asia/Ho_Chi_Minh'))
|
||||
END_DATE = datetime(2024, 3, 4, tzinfo=timezone('Asia/Ho_Chi_Minh'))
|
||||
tz = pytz.timezone('Asia/Singapore')
|
||||
|
||||
OUTPUT_NAME = "Feb29"
|
||||
START_DATE = datetime(2024, 2, 29)
|
||||
END_DATE = datetime(2024, 3, 1)
|
||||
START_DATE = timezone.make_aware(START_DATE, tz)
|
||||
END_DATE = timezone.make_aware(END_DATE, tz)
|
||||
|
||||
# Database connection details
|
||||
db_host = os.environ.get('DB_HOST', "")
|
||||
|
Loading…
Reference in New Issue
Block a user