Skip to content

Commit

Permalink
test connection
Browse files Browse the repository at this point in the history
  • Loading branch information
laysabit committed Apr 18, 2024
1 parent f9041a1 commit 46e69ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dags/stellar_etl_airflow/test_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from airflow import DAG, settings
from airflow.models import DagBag, DagRun, TaskInstance, Variable
from airflow.operators.python_operator import PythonOperator
from airflow.providers.google.cloud.hooks.gcs import GoogleCloudStorageHook
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from airflow.utils.state import State
from google.cloud import bigquery
from google.oauth2 import service_account
Expand Down Expand Up @@ -32,7 +32,8 @@ def get_from_with_combinedExport():
# )

# Create a hook
gcs_hook = GoogleCloudStorageHook(key_path=key_path)
gcs_conn = Variable.get("google_cloud_storage_default")
gcs_hook = GCSHook(google_cloud_storage_conn_id=gcs_conn)

# Download the file and get its content, it runs 47 times day 16th of april
file_content = gcs_hook.download(
Expand Down

0 comments on commit 46e69ee

Please sign in to comment.