File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
alertflow/dags/satellite-weather Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3636 cancel-in-progress : true
3737
3838 steps :
39- - uses : actions/checkout@v3
39+ - uses : actions/checkout@v4
4040
4141 - uses : actions/setup-node@v3
4242 with :
6565 convention-name : conventionalcommits
6666
6767 - name : Install Conda Dependencies
68- uses : conda-incubator/setup-miniconda@v2
68+ uses : conda-incubator/setup-miniconda@v3
6969 with :
7070 miniconda-version : " latest"
7171 mamba-version : " *"
Original file line number Diff line number Diff line change 1818 shell : bash -l {0}
1919
2020 steps :
21- - uses : actions/checkout@v3
21+ - uses : actions/checkout@v4
2222 with :
2323 fetch-depth : 0
2424 submodules : recursive
Original file line number Diff line number Diff line change @@ -84,16 +84,16 @@ def extract_transform_load(
8484 from satellite import downloader as sat_d
8585 from satellite import weather as sat_w
8686 from satellite .weather .brazil .extract_latlons import MUNICIPALITIES
87- from sqlalchemy import create_engine
87+ from sqlalchemy import create_engine , text
8888
8989 start_date = parser .parse (str (date ))
9090 max_update_delay = start_date - timedelta (days = 6 )
9191
9292 with create_engine (psql_uri ["PSQL_MAIN_URI" ]).connect () as conn :
93- cur = conn .execute (
93+ cur = conn .execute (text (
9494 "SELECT geocodigo FROM weather.copernicus_brasil"
9595 f" WHERE date = '{ str (max_update_delay .date ())} '"
96- )
96+ ))
9797 table_geocodes = set (chain (* cur .fetchall ()))
9898
9999 all_geocodes = set ([mun ["geocodigo" ] for mun in MUNICIPALITIES ])
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ RUN source /home/airflow/mambaforge/bin/activate \
7979 && sed -i "s/include-system-site-packages = false/include-system-site-packages = true/" /opt/envs/py310/pyvenv.cfg \
8080 && source /opt/envs/py310/bin/activate \
8181 && pip install \
82- "satellite-weather-downloader >= 1.9.3 " \
82+ "satellite-weather-downloader >= 1.9.4 " \
8383 psycopg2
8484
8585RUN echo "alias activate_episcanner='source /home/airflow/mambaforge/bin/activate episcanner-downloader'" >> /home/airflow/.bashrc
You can’t perform that action at this time.
0 commit comments