Skip to content

Commit

Permalink
use .zattrs when looking nwp has been updated (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield authored Jan 15, 2025
1 parent 1c38c56 commit 551ed5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/modules/services/airflow/dags/uk/nwp-dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@
task_id="determine_latest_zarr_ecmwf",
)(bucket=f'nowcasting-nwp-{env}', prefix='ecmwf/data')

file = f's3://nowcasting-nwp-{env}/data-metoffice/latest.zarr'
file = f's3://nowcasting-nwp-{env}/data-metoffice/latest.zarr/.zattrs'
command = f'curl -X GET "{url}/v0/solar/GB/update_last_data?component=nwp&file={file}"'
nwp_update_ukv = BashOperator(
task_id="nwp-update-ukv",
bash_command=command,
)

file = f's3://nowcasting-nwp-{env}/ecmwf/data/latest.zarr'
file = f's3://nowcasting-nwp-{env}/ecmwf/data/latest.zarr/.zattrs'
command = f'curl -X GET "{url}/v0/solar/GB/update_last_data?component=nwp&file={file}"'
nwp_update_ecmwf = BashOperator(
task_id="nwp-update-ecmwf",
Expand Down

0 comments on commit 551ed5f

Please sign in to comment.