Skip to content

Commit 99b51c6

Browse files
committed
Removed socket.gethostname call from initial S3 sample
1 parent f25a69f commit 99b51c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

airflow/dags/gasolina_s3.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import socket
32

43
from datetime import datetime
54

@@ -60,8 +59,6 @@ def filtrado_s3(contexto, codigo_postal):
6059
@task
6160
def almacenamiento_s3(contexto):
6261
print("Almacenando datos... Nothing to do!")
63-
import socket
64-
print("hostname:", socket.gethostname())
6562
return 42
6663

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

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

0 commit comments

Comments
 (0)