Skip to content

Commit

Permalink
Removed socket.gethostname call from initial S3 sample
Browse files Browse the repository at this point in the history
  • Loading branch information
luisbelloch committed Dec 8, 2021
1 parent f25a69f commit 99b51c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions airflow/dags/gasolina_s3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import json
import socket

from datetime import datetime

Expand Down Expand Up @@ -60,8 +59,6 @@ def filtrado_s3(contexto, codigo_postal):
@task
def almacenamiento_s3(contexto):
print("Almacenando datos... Nothing to do!")
import socket
print("hostname:", socket.gethostname())
return 42

todos_los_datos = recogida_s3()
Expand All @@ -72,3 +69,4 @@ def almacenamiento_s3(contexto):

# Additionally, use Amazon operator, particularly S3KeySensor
# https://airflow.apache.org/docs/apache-airflow-providers-amazon/stable/operators/s3.html
# https://github.com/apache/airflow/tree/main/airflow/providers/amazon/aws/example_dags

0 comments on commit 99b51c6

Please sign in to comment.