Skip to content

Commit

Permalink
Update recipe.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke authored Jun 5, 2024
1 parent c40a81b commit 686e63a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions feedstock/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def expand(self, pcoll: beam.PCollection) -> beam.PCollection:
max_executors=50,
concurrency_per_executor=10,
initial_backoff=3.0,
fsspec_sync_patch=True,# works but is slow. Testing with fsspec and new backoff retry
fsspec_sync_patch=False,# works but is slow. Testing with fsspec and new backoff retry
)
| OpenURLWithFSSpec(cache=None, fsspec_sync_patch=True)
| OpenWithXarray(
Expand All @@ -232,6 +232,8 @@ def expand(self, pcoll: beam.PCollection) -> beam.PCollection:
| ConsolidateMetadata()
| Copy(target=catalog_store_urls["climsim-lowres-mli"])
)


lowres_mlo_make_url = functools.partial(make_url, ds_type="mlo")
lowres_mlo_pattern = FilePattern(lowres_mlo_make_url, concat_dim)
climsim_lowres_mlo = (
Expand All @@ -241,7 +243,7 @@ def expand(self, pcoll: beam.PCollection) -> beam.PCollection:
max_executors=50,
concurrency_per_executor=10,
initial_backoff=3.0,
fsspec_sync_patch=True,# works but is slow. Testing with fsspec and new backoff retry
fsspec_sync_patch=False,# works but is slow. Testing with fsspec and new backoff retry
)
| OpenURLWithFSSpec(cache=None, fsspec_sync_patch=True)
| OpenWithXarray(
Expand All @@ -262,3 +264,5 @@ def expand(self, pcoll: beam.PCollection) -> beam.PCollection:
| ConsolidateMetadata()
| Copy(target=catalog_store_urls["climsim-lowres-mlo"])
)

#TODO: Reuse pipeline parts and parameters

0 comments on commit 686e63a

Please sign in to comment.