Skip to content

Commit

Permalink
Set to specific assets
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Sep 12, 2023
1 parent 861b613 commit 1de22f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion sat/assets/eumetsat/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def download_product_range(api_key: str, api_secret: str, data_dir: str, product
start_date=start_date.tz_localize(None).strftime("%Y-%m-%d-%H-%M-%S"),
end_date=end_date.tz_localize(None).strftime("%Y-%m-%d-%H-%M-%S"),
)
# TODO Change this to actually filter, this only works for live service
filtered_datasets = []
for dataset in datasets:
if dataset["id"] not in filenames_downloaded:
Expand Down
3 changes: 2 additions & 1 deletion sat/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
from dagster import AssetSelection, define_asset_job, EnvVar

from sat.assets.eumetsat.common import EumetsatConfig
from sat.assets import download_eumetsat_iodc_data

base_path = "/mnt/storage_c/IODC/"



asset_jobs = []
asset_job = define_asset_job(f"download_iodc_raw_files", AssetSelection.all(),
asset_job = define_asset_job(f"download_iodc_raw_files", AssetSelection.assets(download_eumetsat_iodc_data),
config={
'ops': {"download_eumetsat_iodc_data": {"config": EumetsatConfig(api_key=EnvVar("EUMETSAT_API_KEY"),
api_secret=EnvVar("EUMETSAT_API_SECRET"),
Expand Down

0 comments on commit 1de22f0

Please sign in to comment.