You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a series of tickets to improve the flytekit authoring experience. If any changes are not possible to make in a backwards-compatible way, split it out into a separate ticket.
Merge options into a dataclass and rename argument
Currently there are three configurations for cache control: cache_serialize, cache_version, cache_ignore_input_vars. We should rename these to serialize (bool) , version (remains a str), and ignore (update type to list[str]|str|None=None).
This object should then be the input to the cache argument in the task decorator, which should be of type bool | Cache, and is False by default.
Are you sure this issue hasn't been raised already?
Yes
Have you read the Code of Conduct?
Yes
The text was updated successfully, but these errors were encountered:
Before moving forward with this, I think we need to consider how this interacts with flyteorg/flytekit#2971
Yes! I think, ideally, the Cache object should include all of the configurations of the auto-caching and the general behavior around caching (serialize, version, ignore).
Perhaps, instead of combining these two objects into one, we could simply add a policy argument to Cache, which could include the more granular auto-caching configurations.
Caching
This is a series of tickets to improve the flytekit authoring experience. If any changes are not possible to make in a backwards-compatible way, split it out into a separate ticket.
Merge options into a dataclass and rename argument
Currently there are three configurations for cache control:
cache_serialize
,cache_version
,cache_ignore_input_vars
. We should rename these toserialize
(bool
) ,version
(remains astr
), andignore
(update type tolist[str]|str|None=None
).This object should then be the input to the
cache
argument in the task decorator, which should be of typebool | Cache
, and isFalse
by default.Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: