Skip to content

Commit 629ba7f

Browse files
committed
move artifacts set at module level to avoid recomputation
1 parent 8e395de commit 629ba7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

metaflow/flowspec.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
from .datastore.inputs import Inputs
3030

31+
INTERNAL_ARTIFACTS_SET = set(["_foreach_values"])
32+
3133

3234
class InvalidNextException(MetaflowException):
3335
headline = "Invalid self.next() transition detected"
@@ -419,7 +421,6 @@ def merge_artifacts(
419421
This exception is thrown in case an artifact specified in `include` cannot
420422
be found.
421423
"""
422-
INTERNAL_ARTIFACTS_SET = set(["_foreach_values"])
423424

424425
include = include or []
425426
exclude = exclude or []

0 commit comments

Comments
 (0)