Skip to content

Commit

Permalink
udpate image
Browse files Browse the repository at this point in the history
udpate image

udpate image

udpate image

udpate image
  • Loading branch information
amishas157 committed Dec 6, 2024
1 parent 30ee494 commit ef7e871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion airflow_variables_dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
"schema_filepath": "/home/airflow/gcs/dags/schemas/",
"sentry_dsn": "https://[email protected]/6190849",
"sentry_environment": "development",
"stellar_etl_internal_image_name": "stellar/stellar-etl:204d343fa",
"stellar_etl_internal_image_name": " amishastellar/stellar-etl-internal:ab0a13897",
"table_ids": {
"accounts": "accounts",
"assets": "history_assets",
Expand Down
7 changes: 3 additions & 4 deletions dags/external_data_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"""

from ast import literal_eval
from datetime import datetime
from datetime import datetime, timedelta
from json import loads

from airflow import DAG
from airflow.configuration import conf
from airflow.models.variable import Variable
from airflow.providers.cncf.kubernetes.operators.pod import KubernetesPodOperator
from kubernetes.client import models as k8s
Expand Down Expand Up @@ -56,8 +57,6 @@ def stellar_etl_internal_task(

image = "{{ var.value.stellar_etl_internal_image_name }}"

logging.info(f"sh commands to run in pod: {args}")

return KubernetesPodOperator(
task_id=task_name,
name=task_name,
Expand All @@ -80,7 +79,7 @@ def stellar_etl_internal_task(
image_pull_policy="IfNotPresent",
image_pull_secrets=[k8s.V1LocalObjectReference("private-docker-auth")],
sla=timedelta(
seconds=Variable.get("task_sla", deserialize_json=True)[f"task_name"]
seconds=Variable.get("task_sla", deserialize_json=True)[task_name]
),
trigger_rule="all_done",
)
Expand Down

0 comments on commit ef7e871

Please sign in to comment.