@@ -664,7 +664,7 @@ def auto(cls, config_file: typing.Union[str, ConfigFile] = None) -> LocalConfig:
664664
665665
666666@dataclass (init = True , repr = True , eq = True , frozen = True )
667- class FieldConfig (object ):
667+ class TaskConfig (object ):
668668 """
669669 Any Project/Domain/Org configuration.
670670 """
@@ -674,13 +674,13 @@ class FieldConfig(object):
674674 org : Optional [str ] = None
675675
676676 @classmethod
677- def auto (cls , config_file : typing .Union [str , ConfigFile ] = None ) -> FieldConfig :
677+ def auto (cls , config_file : typing .Union [str , ConfigFile ] = None ) -> TaskConfig :
678678 config_file = get_config_file (config_file )
679679 kwargs = {}
680680 kwargs = set_if_exists (kwargs , "project" , _internal .Local .USER_PROJECT .read (config_file ))
681681 kwargs = set_if_exists (kwargs , "domain" , _internal .Local .USER_DOMAIN .read (config_file ))
682682 kwargs = set_if_exists (kwargs , "org" , _internal .Local .USER_ORG .read (config_file ))
683- return FieldConfig (** kwargs )
683+ return TaskConfig (** kwargs )
684684
685685
686686@dataclass (init = True , repr = True , eq = True , frozen = True )
@@ -699,15 +699,15 @@ class Config(object):
699699 stats (StatsConfig): Configuration for statsd metrics.
700700 data_config (DataConfig): Data storage configuration.
701701 local_sandbox_path (str): Path for local sandbox runs.
702- field_config (FieldConfig ): Project/Domain/Org configuration.
702+ task_config (TaskConfig ): Project/Domain/Org configuration.
703703 """
704704
705705 platform : PlatformConfig = PlatformConfig ()
706706 secrets : SecretsConfig = SecretsConfig ()
707707 stats : StatsConfig = StatsConfig ()
708708 data_config : DataConfig = DataConfig ()
709709 local_sandbox_path : str = tempfile .mkdtemp (prefix = "flyte" )
710- field_config : FieldConfig = FieldConfig ()
710+ task_config : TaskConfig = TaskConfig ()
711711
712712 def with_params (
713713 self ,
@@ -716,15 +716,15 @@ def with_params(
716716 stats : StatsConfig = None ,
717717 data_config : DataConfig = None ,
718718 local_sandbox_path : str = None ,
719- field_config : FieldConfig = None ,
719+ task_config : TaskConfig = None ,
720720 ) -> Config :
721721 return Config (
722722 platform = platform or self .platform ,
723723 secrets = secrets or self .secrets ,
724724 stats = stats or self .stats ,
725725 data_config = data_config or self .data_config ,
726726 local_sandbox_path = local_sandbox_path or self .local_sandbox_path ,
727- field_config = field_config or self .field_config ,
727+ task_config = task_config or self .task_config ,
728728 )
729729
730730 @classmethod
@@ -746,7 +746,7 @@ def auto(cls, config_file: typing.Union[str, ConfigFile, None] = None) -> Config
746746 secrets = SecretsConfig .auto (config_file ),
747747 stats = StatsConfig .auto (config_file ),
748748 data_config = DataConfig .auto (config_file ),
749- field_config = FieldConfig .auto (config_file ),
749+ task_config = TaskConfig .auto (config_file ),
750750 ** kwargs ,
751751 )
752752
0 commit comments