Skip to content

Commit

Permalink
guard function_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Mar 19, 2024
1 parent 60b0650 commit 8b60862
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coffea/dataset_tools/apply_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def apply_to_dataset(
compression_level=6,
)
)()
dask.base.function_cache.clear()
if hasattr(dask.base, "function_cache"):
dask.base.function_cache.clear()
else:
out = analysis(events)
if not isinstance(out, tuple):
Expand Down

0 comments on commit 8b60862

Please sign in to comment.