Skip to content

Commit

Permalink
chore(ceda-global): Update asset specification
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Sep 12, 2024
1 parent a24b021 commit c638b10
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions local_archives/nwp/ceda/ceda_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,27 @@

@dg.asset(
name="zarr_archive",
description="".join((
"Zarr archive of NWP data from the Met Office's Global model. ",
"Sourced via FTP from CEDA: ",
"https://catalogue.ceda.ac.uk/uuid/86df725b793b4b4cb0ca0646686bd783/\n",
"This asset is updated monthly, and surfaced as a Zarr Directory Store ",
"for each month. It is downloaded using the nwp-consumer: ",
"https://github.com/openclimatefix/nwp-consumer",
)),
key_prefix=["nwp", "ceda", "global"],
metadata={
"archive_folder": dg.MetadataValue.text(f"{ZARR_FOLDER}/nwp/ceda/global"),
"area": dg.MetadataValue.text("global"),
"source": dg.MetadataValue.text("ceda"),
"expected_runtime": dg.MetadataValue.text("6 hours"),
},
compute_kind="docker",
automation_condition=dg.AutomationCondition.eager(),
tags={
"dagster/max_runtime": str(60 * 60 * 10), # Should take 6 ish hours
"dagster/priority": "1",
},
compute_kind="download",
op_tags={"dagster/max_runtime": int(60 * 100)},
partitions_def=dg.MonthlyPartitionsDefinition(
start_date="2019-01-01",
end_offset=-3,
Expand Down

0 comments on commit c638b10

Please sign in to comment.